Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle killed sub-processes #61

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

papermana
Copy link
Contributor

Fixes #60.

Node docs say that the exit event will receive the exit code and the signal as arguments. One of these is guaranteed to be non-null. In our case, if a sub-process was terminated involuntarily, exitCode was null, and running process.exit(exitCode) resulted in exit code 0.

@entropitor entropitor merged commit 8d0a462 into entropitor:master Nov 29, 2021
@papermana papermana deleted the handle-killed-subprocesses branch December 7, 2021 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Processes that run out of memory report exit code 0
2 participants