Дамјан Георгиевски 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).
> 
> I've tried this in a test C program... exactly what I need. Now if I
> could slip this between the fork and exec in subprocess.Popen()

An obvious way, if you're trying to hack something without the source, is to 
substitute your own executable which does the prctl before execing the real 
executable.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to