Author astrand
Recipients
Date 2007-01-07.14:01:38
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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. 
History
Date User Action Args
2007-08-23 16:12:20adminlinkissue1615376 messages
2007-08-23 16:12:20admincreate