lib/meteor/meteorProcess.js
function kill (cb) {
    if (!meteor) {
      return cb();
    }
    meteor.once('exit', function (code) {
      if (!code || code === 0 || code === 130) {
        cb();
      } else {
        cb(new Error('exited with code ' + code));
      }
    });
    meteor.kill('SIGINT');
    meteor = null;
    //--------------------------------------------
    process.removeListener('exit', onProcessExit);
  }
function kill (cb) {
    if (!meteor) {
      return cb();
    }
    meteor.once('exit', function (code) {
      if (!code || code === 0 || code === 130) {
        cb();
      } else {
        cb(new Error('exited with code ' + code));
      }
    });
    meteor.kill('SIGINT');
    meteor = null;
    //--------------------------------------------
    process.removeListener('exit', onProcessExit);
  }
function kill ( cb ) { if ( ! meteor ) { return cb ( ) ; } meteor . once ( 'exit' , function ( code ) { if ( ! code || code === 0 || code === 130 ) { cb ( ) ; } else { cb ( new Error ( 'exited with code ' + code ) ) ; } } ) ; meteor . kill ( 'SIGINT' ) ; meteor = null ; //-------------------------------------------- process . removeListener ( 'exit' , onProcessExit ) ; }
Kill the meteor process and cleanup.

@param {Function} cb
Kill the meteor process and cleanup .