Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_killProcess: function (signal) {
if (this.process) {
Q.denodeify(psTree.bind(psTree))(this.pid)
.then(this._onProcessTree.bind(this))
this.process.kill(signal || this._stopSignal);
}
},