How to loop until kill command sent?
How to loop until kill command sent?
- Subject: How to loop until kill command sent?
- From: "Devraj Mukherjee" <email@hidden>
- Date: Tue, 17 Jul 2007 14:05:45 +1000
Hi everyone,
I am trying to write a daemon style application in Objective-C. The
application listens to a socket for messages, and performs various
actions based on that.
I am using NSRunLoop to keep listening to the socket and respond to
the events using notifications. If the application is a sent a kill
signal I would like it to die gracefully.
1. How do I respond to kill signals sent to my application
2. Should I be using a threading model instead of the NSRunLoop
Thanks for your time
--
"I never look back darling, it distracts from the now", Edna Mode (The
Incredibles)
_______________________________________________
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