• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Killing child tasks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: [ot/newbie] Changing init code of widgets in Interface Builder
  • Next by Date: Re: [ot/newbie] Changing init code of widgets in Interface Builder
  • Previous by thread: Re: Killing child tasks
  • Next by thread: Thread safe programming
  • Index(es):
    • Date
    • Thread