• 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
handle kill of foundation tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: handle kill of foundation tool
      • From: Axel Andersson <email@hidden>
    • Re: handle kill of foundation tool
      • From: John Clayton <email@hidden>
  • Prev by Date: Re: NSDate dateWithNaturalLanguageString goes BOOM! after being called 100, 000+ times
  • Next by Date: Re: Check for Mac OS Version
  • Previous by thread: Re: NSTimer not firing if date changed in Sys Prefs
  • Next by thread: Re: handle kill of foundation tool
  • Index(es):
    • Date
    • Thread