We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e8fe8 commit ae7fed4Copy full SHA for ae7fed4
cli.js
@@ -14,8 +14,11 @@ var input = process.argv.slice(2);
14
var bin = require('./');
15
16
if (bin !== null) {
17
- spawn(bin, input, {stdio: 'inherit'})
+ var child = spawn(bin, input, {stdio: 'inherit'})
18
.on('exit', process.exit);
19
+ process.on('SIGTERM', function() {
20
+ child.kill();
21
+ });
22
} else {
23
throw new Error('Platform not supported.');
24
}
0 commit comments