Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "terminate", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Terminate a Node.js Process based on the Process ID", | ||
@@ -5,0 +5,0 @@ "main": "terminate.js", |
@@ -21,3 +21,2 @@ var cp = require('child_process'); | ||
psTree(pid, function (err, children) { | ||
console.log("Children:", children.length); | ||
cp.spawn('kill', ['-9'].concat(children.map(function (p) { return p.PID }))) | ||
@@ -24,0 +23,0 @@ if(callback && typeof callback === 'function') { |
13662
109