popen problems

P at draigBrady.com P at draigBrady.com
Thu Aug 21 05:34:56 EDT 2003


David McNab wrote:
> Hi,
> 
> When using os.popen, or popen2.Popen3 objects, I see a situation when
> the child process sometimes doesn't get terminated, even when the child
> program has exited.

I noticed that the popen2.Popen3 class only waits
for (reaps) children on subsequent runs. I.E.
there is always one hanging around.

> It's like Python (2.2.3) intermittently leaves the process dangling.
> Sometimes 'killall python' doesn't clean up these dead tasks.

hrm, never noticed that.

Pádraig.





More information about the Python-list mailing list