os.wait() losing child?
Hrvoje Niksic
hniksic at xemacs.org
Fri Jul 13 12:57:14 EDT 2007
Jason Zheng <Xin.Zheng at jpl.nasa.gov> writes:
>>> 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.
> Is it more convenient to just inherit the Popen class?
You'd still need to change its behavior to not call _cleanup. For
example, by removing "your" instances from subprocess._active before
chaining up to Popen.__init__.
> I'm concerned about portability of my code. It will be run on
> multiple machines with mixed Python 2.4 and 2.5 environments.
I don't think there is a really clean way to handle this.
More information about the Python-list
mailing list