[issue6457] subprocess.Popen.communicate can lose data from output/error streams when broken input pipe occures

Yaniv Aknin report at bugs.python.org
Sat Apr 10 00:26:39 CEST 2010


Yaniv Aknin <yaniv.aknin at gmail.com> added the comment:

I've updated the sample code to run with Python 3 and tested on Ubuntu 9.10 with and without setting subprocess._has_poll = False.

As expected, when using poll() the sample runs correctly.
When not using poll() the sample breaks (sometimes no data, sometimes some data; oddly, it seems the 'some data' variant appears only when I strace the process, probably because it slows things down).

I suggest this be committed against 3.2 as well, but I don't know how these things are usually done; should I produce a separate patch which ports the latest patch currently posted in this thead against py3k? Or will this be done by whomever applies the patch?

----------
nosy: +Yaniv.Aknin
versions: +Python 3.2

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


More information about the Python-bugs-list mailing list