-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
See remy/nodemon#195
When running coffee --nodejs ..., a node child process is created.
Killing/restarting the coffee process does not kill the node process and can continue tying up resources that the new process needs to access. For example, if node was started with --debug, then it will keep using port 5858, preventing the newly spawned node process from opening that port.
Workaround is to abandon the coffee command and use:
node --debug ./node_modules/.bin/coffee path/to/script.coffee
However, it seems the coffee command is essentially useless when launching node and working with automated restart workflows.
Proposed solution: coffee should handle SIGINT and SIGTERM and kill any child processes it has started.
Metadata
Metadata
Assignees
Labels
No labels