Re: end child process when parent dies (on Unix)

2008-11-17 Thread Miles
On Mon, Nov 17, 2008 at 2:51 AM, Дамјан Георгиевски 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 soluti

Re: end child process when parent dies (on Unix)

2008-11-17 Thread Lawrence D'Oliveiro
Дамјан Георгиевски 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

Re: end child process when parent dies (on Unix)

2008-11-17 Thread Дамјан Георгиевски
>> 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

Re: end child process when parent dies (on Unix)

2008-11-16 Thread Lawrence D'Oliveiro
Дамјан Георгиевски 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). -- http://mail.python.org/m

end child process when parent dies (on Unix)

2008-11-16 Thread Дамјан Георгиевски
Hi all, 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. For normal situations I can send a signal to the pid of the Popen object. But not if the