[issue14000] Subprocess stdin.flush does not flush

Ross Lagerwall report at bugs.python.org
Mon Feb 13 17:40:07 CET 2012


Ross Lagerwall <rosslagerwall at gmail.com> added the comment:

This appears to be a buffering issue with the tr program. Replace with ["cat", "-"] and it works whether the close() is in or not.

To fix this, you need to open up the child process so that it is connected to a tty. man 4 pts if you want to investigate this further.

----------
nosy: +rosslagerwall
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list