Thanks!

On Mar 3, 2010, at 7:28 PM, Ken Ferry wrote:

> In 10.6 you can also do this by setting a dispatch queue on which you want a 
> block invoked when a signal comes in.  If you give it the main dispatch 
> queue, that's like installing on the runloop of the main thread.
> 
> See <dispatch/source.h>.  
> 
> This is also nice because it's in _addition_ to signal handlers, not a 
> replacement for signal handlers, and more than one thing can register to be 
> notified about the signal.  
> 
> You still have to register a signal handler to avoid having the signal kill 
> your app.
> 
> -Ken
> 
> On Wed, Mar 3, 2010 at 6:13 PM, Dave Keck <[email protected]> wrote:
> This can be done using kevents. See the
> InstallHandleSIGTERMFromRunLoop function, here:
> 
>    
> http://developer.apple.com/mac/library/samplecode/PreLoginAgents/listing2.html
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com
> 
> This email sent to [email protected]
> 

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to