Skip to content

Commit 76b1132

Browse files
committed
Propagate SIGINT and SIGTERM signals when node is forked
1 parent 27f21a3 commit 76b1132

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/command.coffee

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ forkNode = ->
444444
cwd: process.cwd()
445445
env: process.env
446446
stdio: [0, 1, 2]
447+
['SIGINT', 'SIGTERM'].forEach (signal) ->
448+
process.on signal, ->
449+
p.kill signal
447450
p.on 'exit', (code) -> process.exit code
448451

449452
# Print the `--help` usage message and exit. Deprecated switches are not

0 commit comments

Comments
 (0)