[issue42558] waitpid/waitid race caused by change to Popen.send_signal in Python 3.9

Gregory P. Smith report at bugs.python.org
Fri Dec 4 15:16:42 EST 2020


Gregory P. Smith <greg at krypto.org> added the comment:

I agree with Victor.  When code launches a process with subprocess APIs, it is expected that the subprocess module manages the process.

Calling os.waitpid directly instead of using subprocess's APIs breaks that expectation.

Also, WNOWAIT and waitid() (not waitpid()) are not available on all platforms.  Nor is pidfd_open().  Code using any of those for such a PR needs to be conditional on their runtime availability.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42558>
_______________________________________


More information about the Python-bugs-list mailing list