lib/childProcess.js
function signalKill(childProcess, callback) {
  childProcess.emit('signalKill');
  if (IS_WINDOWS) {
    const taskkill = spawn('taskkill', ['/F', '/T', '/PID', childProcess.pid]);
    taskkill.on('exit', (exitStatus) => {
      if (exitStatus) {
        return callback(
          new Error(`Unable to forcefully terminate process ${childProcess.pid}`)
        );
      }
      callback();
    });
  } else {
    childProcess.kill('SIGKILL');
    process.nextTick(callback);
  }
}
function signalKill(childProcess, callback) {
  childProcess.emit('signalKill');
  if (IS_WINDOWS) {
    const taskkill = spawn('taskkill', ['/F', '/T', '/PID', childProcess.pid]);
    taskkill.on('exit', (exitStatus) => {
      if (exitStatus) {
        return callback(
          new Error(`Unable to forcefully terminate process ${childProcess.pid}`)
        );
      }
      callback();
    });
  } else {
    childProcess.kill('SIGKILL');
    process.nextTick(callback);
  }
}
function signalKill ( childProcess , callback ) { childProcess . emit ( 'signalKill' ) ; if ( IS_WINDOWS ) { const taskkill = spawn ( 'taskkill' , [ '/F' , '/T' , '/PID' , childProcess . pid ] ) ; taskkill . on ( 'exit' , ( exitStatus ) => { if ( exitStatus ) { return callback ( new Error ( ` ${ childProcess . pid } ` ) ) ; } callback ( ) ; } ) ; } else { childProcess . kill ( 'SIGKILL' ) ; process . nextTick ( callback ) ; } }
Signals the child process to forcefully terminate
Signals the child process to forcefully terminate