how to kill (or avoid) zombie processes with subprocess module

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-05-03T19:29:32Z Indexed on 2010/05/03 21:18 UTC
Read the original article Hit count: 336

Filed under:
|

When I kick off a python script from within another python script using the subprocess module, a zombie process is created when the subprocess "completes". I am unable to kill this subprocess unless I kill my parent python process.

Is there a way to kill the subprocess without killing the parent? I know I can do this by using wait(), but I need to run my script with no_wait().

© Stack Overflow or respective owner

Related posts about python

Related posts about subprocess