cerr <ron.egg...@gmail.com> writes:

> I'm calling a python script from a php script which again calls a perl
> script with subprocess.popen().
> This seems to work fine so far only that once the python script
> completed it is becoming a zombie because the perl script in the
> background is still running... so before i exit the python script, i
> would need to kill my perl subprocess.
> How can i do so?

x.terminate() (and then x.wait()) where x is the value returned by
subprocess.Popen().

-- Alain.

P/S: I'm not sure why the python process survives, and I think your use
of "zombie" is not correct (afaik a zombie is an exited process whose
parent hasn't called wait() yet)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to