Dariusz Walczak added the comment:
Your patch works for me with one exception:
On FreeBSD (python 2.6.1) OSError exception is raised by os.write
instead of IOError exception (raised by self.stdin.write on Windows).
The error code is same on both platforms
New submission from Dariusz Walczak :
It's possible to lose data piped through standard output and/or error
streams when large ammounts of data are transfered.
Reproduction:
1) Process A spawns process B with all standard I/O pipes and transfers
large ammount of data to it (100kB in my s