Node.js process on SIGINT

Description

Node.js process on SIGINT


setInterval(function(){
  console.log('hello');
}, 1000);/*  w  ww  .  j av a 2  s .  co  m*/

process.on('SIGINT', function(){
  console.log('bye');
  process.exit(0);
});



PreviousNext

Related