diff --git a/src/command.coffee b/src/command.coffee index bfd89aadce..0c5c1d49b0 100644 --- a/src/command.coffee +++ b/src/command.coffee @@ -462,6 +462,9 @@ forkNode = -> cwd: process.cwd() env: process.env stdio: [0, 1, 2] + for signal in ['SIGINT', 'SIGTERM'] + process.on signal, do (signal) -> + -> p.kill signal p.on 'exit', (code) -> process.exit code # Print the `--help` usage message and exit. Deprecated switches are not