8000 Add reference to · byllyfish/shellous@ce920be · GitHub
[go: up one dir, main page]

Skip to content

Commit ce920be

Browse files
committed
Add reference to
python/cpython#87744
1 parent c28db06 commit ce920be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shellous/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,9 @@ def returncode(self) -> Optional[int]:
441441
return None
442442
code = self._proc.returncode
443443
if code == _UNKNOWN_EXIT_CODE and self._last_signal is not None:
444-
# Rarely after sending a SIGTERM, waitpid fails to locate the child
444+
# After sending a signal, `waitpid` may fail 5251 to locate the child
445445
# 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
446447
return -self._last_signal # pylint: disable=invalid-unary-operand-type
447448
return code
448449

0 commit comments

Comments
 (0)
0