services/inter_comm/base.js
function () {
    const oThis = this;

    process.on('SIGINT', function () {
      logger.info("Received SIGINT, cancelling block scaning");
      oThis.interruptSignalObtained = true;
    });
    process.on('SIGTERM', function () {
      logger.info("Received SIGTERM, cancelling block scaning");
      oThis.interruptSignalObtained = true;
    });
  }
function () {
    const oThis = this;

    process.on('SIGINT', function () {
      logger.info("Received SIGINT, cancelling block scaning");
      oThis.interruptSignalObtained = true;
    });
    process.on('SIGTERM', function () {
      logger.info("Received SIGTERM, cancelling block scaning");
      oThis.interruptSignalObtained = true;
    });
  }
function ( ) { const oThis = this ; process . on ( 'SIGINT' , function ( ) { logger . info ( "Received SIGINT, cancelling block scaning" ) ; oThis . interruptSignalObtained = true ; } ) ; process . on ( 'SIGTERM' , function ( ) { logger . info ( "Received SIGTERM, cancelling block scaning" ) ; oThis . interruptSignalObtained = true ; } ) ; }
Register interrup signal handlers
Register interrup signal handlers