Message54949
One easy solution is to simply close the pipe in the parent after starting both processes, before calling p1.wait():
p1.stdout.close()
It's not "perfect", though, p1 will execute a while before recieving SIGPIPE. For a perfect solution, it would be necessary to close the pipe end in the parent after the fork but before the exec in the child. This would require some kind of synchronization.
Moving to feature request. |
|
Date |
User |
Action |
Args |
2007-08-23 16:12:20 | admin | link | issue1615376 messages |
2007-08-23 16:12:20 | admin | create | |
|