Re: Killing child tasks
Re: Killing child tasks
- Subject: Re: Killing child tasks
- From: Cameron Hayne <email@hidden>
- Date: Thu, 6 Jun 2002 03:56:35 -0400
email@hidden wrote:
(in answer to someone who asked "what signal gets sent when the
cmd-opt-esc kill is used?"
I'm pretty sure it's SIGINT.
Owen Anderson
I wrote a small Cocoa program to find out. (It catches the likely
signals and prints out what it caught.)
It turns out that doing "Force Quit" sends SIGINT and then, about 2
seconds later, SIGKILL.
You can catch SIGINT (via the 'signal' function) and do some cleanup.
It is not possible to catch SIGKILL (hence the "Force" in "Force Quit")
so you'd better be fast in doing your cleanup.
... Cameron
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.