npm.io
1.2.0 • Published 9 years ago

kill-on-exit

Licence
BSD-2-Clause
Version
1.2.0
Deps
0
Vulns
0
Weekly
0
Stars
5

kill-on-exit

Makes sure child processes are cleaned up (killed) when the parent process exits.

Install

npm install kill-on-exit --save

Use

var spawn = require("child_process").spawn;
var killOnExit = require("kill-on-exit");

var child = spawn("long-process");
killOnExit(child);

License

BSD 2 Clause

Keywords