8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28db06 commit ce920beCopy full SHA for ce920be
shellous/runner.py
@@ -441,8 +441,9 @@ def returncode(self) -> Optional[int]:
441
return None
442
code = self._proc.returncode
443
if code == _UNKNOWN_EXIT_CODE and self._last_signal is not None:
444
- # Rarely after sending a SIGTERM, waitpid fails to locate the child
+ # After sending a signal, `waitpid` may fail 5251 to locate the child
445
# process. In this case, map the status to the last signal we sent.
446
+ # For more on this, see https://github.com/python/cpython/issues/87744
447
return -self._last_signal # pylint: disable=invalid-unary-operand-type
448
return code
449
0 commit comments