Socket
Socket
Sign inDemoInstall

tree-kill

Package Overview
Dependencies
1
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.1.0

README.md

18

index.js

@@ -7,5 +7,5 @@ var childProcess = require('child_process');

module.exports = function (pid, signal) {
module.exports = function (pid, signal, callback) {
if (isWindows) {
exec('taskkill /pid ' + pid + ' /T /F');
exec('taskkill /pid ' + pid + ' /T /F', callback);
} else {

@@ -17,3 +17,15 @@ var tree = {};

buildProcessTree(pid, tree, pidsToProcess, function () {
killAll(tree, signal);
try {
killAll(tree, signal);
}
catch (err) {
if (callback) {
return callback(err);
} else {
throw err;
}
}
if (callback) {
return callback();
}
});

@@ -20,0 +32,0 @@ }

{
"name" : "tree-kill",
"version" : "0.0.6",
"version" : "0.1.0",
"description" : "kill trees of processes",

@@ -32,2 +32,7 @@ "main" : "index.js",

"url" : "http://twolfson.com/"
},
{
"name" : "William Hilton",
"email" : "wmhilton@gmail.com",
"url" : "http://wmhilton.com/"
}

@@ -34,0 +39,0 @@ ],

package.json~
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc