Re: Slightly OT: SIGKILL (force quit) and child process termination
Re: Slightly OT: SIGKILL (force quit) and child process termination
- Subject: Re: Slightly OT: SIGKILL (force quit) and child process termination
- From: Dave Camp <email@hidden>
- Date: Tue, 28 Nov 2006 14:55:54 -0800
On Nov 28, 2006, at 2:00 PM, email@hidden wrote:
On 28 Nov 2006, at 17:18, Guy Meyer wrote:
If the parent process is sent a SIGKILL the child process is left
orphaned and continues to run, while I am interested in termination.
First of all if someone sends you a SIGKILL it's game over, that is
not a normal way to terminate processes.
But if there is no way around it you could let the child process
monitor the parent through a kqueue mechanism and then act if the
parent process is killed.
Perhaps SIGTERM is what you are looking for. It's common and you can
catch it with a signal handler.
Dave
---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden