Skip to content

Killing coffee process does not kill child node process #4185

@svicalifornia

Description

@svicalifornia

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions