Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment: Testing on Debian with latest trunk: - the proposed example code works very well (I get all data). - I added "subprocess._has_poll = False", and some (sometimes all) data is lost. It seems that select() will return stdin even if it is not writable.
On Windows of course, communicate() uses a blocking write, and always fail. The proposed patch ignore the errors when EPIPE is raised, and simply stops writing. ---------- keywords: +needs review, patch nosy: +amaury.forgeotdarc stage: -> patch review Added file: http://bugs.python.org/file14493/broken_pipe.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6457> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com