Skip to content

Conversation

@ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Jun 2, 2024

This PR adds an error.isForcefullyTerminated. It is true when the subprocess was terminated by the forceKillAfterDelay option, which sends a SIGKILL 5 seconds after calling subprocess.kill().

The error message now also includes information mentioning that the subprocess was forcefully terminated.

Forceful terminations are abnormal and most likely indicate a bug. The forceKillAfterDelay option is only meant as a lesser evil to subprocesses hanging forever. The above changes will hopeful highlight those better.

@sindresorhus sindresorhus merged commit e69985d into main Jun 2, 2024
@sindresorhus sindresorhus deleted the force-killed-one branch June 2, 2024 11:29
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.

3 participants