Closed
Description
Whilst issue #457 has been fixed on ts-node@4.1.x
, 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