os.wait() losing child?

Hrvoje Niksic hniksic at xemacs.org
Fri Jul 13 08:52:21 CEST 2007

Jason Zheng <Xin.Zheng at jpl.nasa.gov> writes:

> Hrvoje Niksic wrote:
>>> greg wrote:
>> Actually, it's not that bad.  _cleanup only polls the instances that
>> are no longer referenced by user code, but still running.  If you hang
>> on to Popen instances, they won't be added to _active, and __init__
>> won't reap them (_active is only populated from Popen.__del__).
> Perhaps that's the difference between Python 2.4 and 2.5.
> Nope it still doesn't work. I'm running python 2.4.4, tho.

That explains it, then, and also why greg's code didn't work.  You
still have the option to try to run 2.5's subprocess.py under 2.4.

More information about the Python-list mailing list