Comparing version 0.0.2 to 0.0.3
var spawn = require('child_process').spawn; | ||
var once = require('once'); | ||
@@ -45,3 +46,4 @@ module.exports = function (pid, signal) { | ||
}); | ||
ps.on('exit', function (code) { | ||
var onExitClose = once(function (code) { | ||
delete pidsToProcess[parentPid]; | ||
@@ -77,3 +79,5 @@ | ||
}); | ||
ps.on('exit', onExitClose); | ||
ps.on('close', onExitClose); | ||
} | ||
{ | ||
"name" : "tree-kill", | ||
"version" : "0.0.2", | ||
"version" : "0.0.3", | ||
"description" : "kill trees of processes", | ||
@@ -11,2 +11,5 @@ "main" : "index.js", | ||
"homepage" : "https://github.com/pkrumins/node-tree-kill", | ||
"dependencies" : { | ||
"once" : "1.1.1" | ||
}, | ||
"keywords" : [ | ||
@@ -13,0 +16,0 @@ "tree", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4709
74
1
+ Addedonce@1.1.1
+ Addedonce@1.1.1(transitive)