SIGKILL (force quit) and child process termination
SIGKILL (force quit) and child process termination
- Subject: SIGKILL (force quit) and child process termination
- From: Guy Meyer <email@hidden>
- Date: Wed, 29 Nov 2006 16:21:41 +0200
My application uses a tool process (child), which is launched by NSTask.
If a user force quit the application from the finder for whatever
reason, the tool process continues to run and consumes computing
resource, a situation I am trying to avoid.
One solution to the problem is to implement a periodic IPC between
the processes. Another is to regularly check for application pid
existence. I am not interested in these solutions.
Looking at Terminal.app and it's child processes (login, bash), when
you SIGKILL one of them, for example bash, the child process that
had been launched through it is also being killed. If you SIGKILL the
terminal all its child processes are also killed.
Obviously, as SIGKILL is none catchable the SIGKILL is also being
sent by the Kernel to the child processes.
How can I achieve same behavior ?
Thanks
Guy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden