[issue21291] subprocess Popen objects are not thread safe w.r.t. wait() and returncode being set

Gregory P. Smith report at bugs.python.org
Fri Apr 18 03:35:25 CEST 2014


Gregory P. Smith added the comment:

Attaching a proposed fix for this issue.  It should make the wait() and poll() methods thread safe.  I need to turn the reproducer code into an actual test case and add more test cases for coverage of all code paths being touched.

I haven't examined the windows side of this code for the issue, it may also be useful there.

----------
keywords: +patch
Added file: http://bugs.python.org/file34960/issue21291-fix-gps01.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21291>
_______________________________________


More information about the Python-bugs-list mailing list