Re: Daemon Advice?
Re: Daemon Advice?
- Subject: Re: Daemon Advice?
- From: Jens Alfke <email@hidden>
- Date: Wed, 23 Jul 2008 21:03:23 -0700
On 23 Jul '08, at 2:20 PM, Nick Zitzmann wrote:
Calling ObjC methods in a signal handler is not a good idea: <http://lists.apple.com/archives/Cocoa-dev/2001/Dec/msg00159.html
>
You can work around this by using a kqueue to receive the signal,
creating a file descriptor to listen on the kqueue, and then using an
NSSocket to get a callback on the runloop after the kqueue fires.
(Sorry that sounds convoluted. I've implemented this in the past, but
the code is still inside Apple's firewall, where I don't have access
to it anymore, so I can't look up the details.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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