os.wait() losing child?
Matthew Woodcraft
mattheww at chiark.greenend.org.uk
Thu Jul 12 15:42:41 EDT 2007
Jason Zheng <Xin.Zheng at jpl.nasa.gov> wrote:
>Hrvoje Niksic 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. In 2.4,
> Popen's __init__ always appends self to _active:
Yes, that changed between 2.4 and 2.5.
Note that if you take a copy of 2.5's subprocess.py, it ought to work
fine with 2.4.
-M-
More information about the Python-list
mailing list