handle kill of foundation tool
handle kill of foundation tool
- Subject: handle kill of foundation tool
- From: Hanspeter Spalinger <email@hidden>
- Date: Thu, 31 Mar 2005 08:09:25 +0200
Hi there.
Again a perhaps(i think/hope so) simple question.
I build a Foundation tool who is told to run as long as the computer is
on, as a server, listening on a specific port. My problem is, that it
can happen, that it is stopped manualy, or with the kill command/other
stopp mechanism. Now the app don't have time to clean up, in special it
don't release the socket it claims on startup. Is there a easy way to
handle a kill signal/other signals stopping the app? I don't use
NSApplication, so the delegates from there aren't used. Is there a
counterpart in the Foundation Framework?
Or do I have to learn BSD-style signal handling (what would be a long
way, cause i never did it :-) )
Thanks for help
HP
Attachment:
PGP.sig
Description: Signierter Teil der Nachricht
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden