-
-
Notifications
You must be signed in to change notification settings - Fork 545
Closed
Description
Whilst issue #457 has been fixed on [email protected], the behaviour is still wrong when using child processes. (cluster module)
I've updated my sample project to demonstrate the issue here: https://github.com/endel/ts-node-graceful-shutdown-issue
ts-node behaviour:
SIGINT can be catched only for the master process.
$ ./node_modules/.bin/ts-node index.ts
^CShutting down MASTER...
MASTER has been shut down.
node behaviour:
SIGINT can be catched for master and child process.
$ node index.js
^CShutting down CHILD...
Shutting down MASTER...
CHILD has been shut down.
MASTER has been shut down.
Related pull request: #419
Metadata
Metadata
Assignees
Labels
No labels