Skip to content

Add custom exitcode to process.terminate #206

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

HingchungChu
Copy link

@HingchungChu HingchungChu commented Oct 6, 2024

Description:

process.run() now can return a custom exit code, e.g., 137 for SIGKILL, when process.terminate() is triggered externally. It avoids the misleading default 0 exit code, which could falsely indicate success.

Changes:

Add an extra optional argument exitCode?: exitcode to process.terminate.

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.

1 participant