• 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: Termination notifications in foundation tool?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Termination notifications in foundation tool?


  • Subject: Re: Termination notifications in foundation tool?
  • From: Dave Keck <email@hidden>
  • Date: Fri, 4 Sep 2009 17:36:30 -1000

> What I've done in the past is install a signal handler which tells the OS to
> ignore the signal, but also schedules a future callback on the main thread
> (via the runloop) that will then cleanly shut down the process. You probably
> want to catch the signals generated by Ctrl-C or a 'kill' command; IIRC that
> would be SIGINT, but my memory is hazy.

Here's some example code:

    http://developer.apple.com/mac/library/samplecode/PreLoginAgents/listing2.html

See InstallHandleSIGTERMFromRunLoop()
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >Re: Termination notifications in foundation tool? (From: Greg Guerin <email@hidden>)
 >Re: Termination notifications in foundation tool? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Termination notifications in foundation tool?
  • Next by Date: OpenGL screen captures
  • Previous by thread: Re: Termination notifications in foundation tool?
  • Next by thread: Re: Termination notifications in foundation tool?
  • Index(es):
    • Date
    • Thread