end child process when parent dies (on Unix)

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Nov 17 00:47:04 EST 2008


Дамјан Георгиевски wrote:

> I'm starting a Unix tool with subprocess.Popen() from a python script
> and I want the child to be killed when the parent (my script) ends for
> whatever reason *including* if it gets killed by SIGKILL.

A Linux-specific solution is prctl(2).



More information about the Python-list mailing list