Re: handle kill of foundation tool
Re: handle kill of foundation tool
- Subject: Re: handle kill of foundation tool
- From: John Clayton <email@hidden>
- Date: Thu, 31 Mar 2005 06:37:50 -0500
Hi HP,
I wrote a little test app based on posts to this list that shows one
way to handle signals with Mach messages and Cocoa notifications. You
can get it here:
http://www.fivesquaresoftware.com/code/MessagingSignalHandler.zip
Hope that helps.
Best,
John
On Mar 31, 2005, at 1:09 AM, Hanspeter Spalinger wrote:
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
------------------------------------------------------------------------
-----
http://www.fivesquaresoftware.com Mac Software.
------------------------------------------------------------------------
------
"It is the truth that frees, not your attempts to be free."
- J. Krishnamurti
_______________________________________________
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