• 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: Daemon Advice?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daemon Advice?


  • Subject: Re: Daemon Advice?
  • From: Karl Moskowski <email@hidden>
  • Date: Thu, 24 Jul 2008 09:14:56 -0400

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 >

I didn't find that during my searches. Good to know. I'll remove all the Cocoa stuff from the handler. Thanks, Nick.


On 24-Jul-08, at 12:03 AM, Jens Alfke wrote:

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.)


A little convoluted, yes, but thanks, Jens. :-) If I start seeing problems, I'll look into it.

----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

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

References: 
 >Daemon Advice? (From: Karl Moskowski <email@hidden>)
 >Re: Daemon Advice? (From: Nick Zitzmann <email@hidden>)
 >Re: Daemon Advice? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Folder has limited permissions.
  • Next by Date: XML serialization and deserialization
  • Previous by thread: Re: Daemon Advice?
  • Next by thread: Re: Daemon Advice?
  • Index(es):
    • Date
    • Thread