This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fsteffenhagen
Recipients fsteffenhagen, gregory.p.smith, neologix
Date 2011-11-24.01:40:23
SpamBayes Score 5.7775484e-08
Marked as misclassified No
Message-id <1322098824.21.0.0333834886389.issue13422@psf.upfronthosting.co.za>
In-reply-to
Content
The problem I have with the solution that is currently implemented is that subprocess is waiting for the spawned child although the child is not running anymore.
In my case this issue occured when invoking samba or the small sample daemon (see attached file above).
For example, invoking the daemon from a bash, the daemon program exits immediately and its spawned child is running in the background. The point is that the bash is accessible right after starting the daemon. It is not waiting for the daemon process in the background to close the open pipe.

What do you think of using a waitpid for this scenario?
subprocess.Popen could wait for the pid of the daemon starter and gets back control once the pid of the daemon starter is gone. This way, subprocess.Popen does not need to wait for EOF on left-open pipes.
History
Date User Action Args
2011-11-24 01:40:24fsteffenhagensetrecipients: + fsteffenhagen, gregory.p.smith, neologix
2011-11-24 01:40:24fsteffenhagensetmessageid: <1322098824.21.0.0333834886389.issue13422@psf.upfronthosting.co.za>
2011-11-24 01:40:23fsteffenhagenlinkissue13422 messages
2011-11-24 01:40:23fsteffenhagencreate