[issue13422] Subprocess: children hang due to open pipes

2011-11-24 Thread Charles-François Natali
Charles-François Natali added the comment: > 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 > (

[issue13422] Subprocess: children hang due to open pipes

2011-11-23 Thread Felix Steffenhagen
Felix Steffenhagen added the comment: 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 fi

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Felix Steffenhagen
Felix Steffenhagen added the comment: The behavior that the daemon is not closing stderr is intentional to reproduce the issue. This problem occured to me when I was invoking the samba init script on a Gentoo system. Invoked from a bash, the initscript was terminating fine. But when I invoked

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: This looks like a bug in your daemon not in subprocess. Your daemon is intentionally not closing its inherited stderr fd. -- nosy: +gregory.p.smith resolution: -> invalid status: open -> closed ___ Python tracke

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Charles-François Natali
Charles-François Natali added the comment: > subprocess.Popen.communicate() hangs for daemonized subprocesses that > leave a pipe open. [...] which leaves stderr pipe open. Of course: the daemon process (spawned by the second fork()) inherits the subprocess's stderr (since file descriptors ar

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Felix Steffenhagen
Changes by Felix Steffenhagen : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue13422] Subprocess: children hang due to open pipes

2011-11-17 Thread Felix Steffenhagen
New submission from Felix Steffenhagen : subprocess.Popen.communicate() hangs for daemonized subprocesses that leave a pipe open. The python caller, invoking the daemon subprocess, runs as long as the daemon process. This happens on POSIX platforms with python 2.7 as well as 3.2. Please find