Ben Kane added the comment:
https://docs.python.org/3/library/subprocess.html#subprocess.Popen.returncode
does mention the negativeness about returncode in conjunction with POSIX
signals. It would be helpful to mention this Python-specific (I think) behavior
in a comment.
However, returncode
New submission from Ben Kane:
On page https://docs.python.org/3/library/subprocess.html#replacing-os-system
it looks like the code in the realistic example has a spurious '-' sign.
The line:
print("Child was terminated by signal", -retcode, file=sys.stderr)
shou