• 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
making sure launched NSTasks die with their application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

making sure launched NSTasks die with their application


  • Subject: making sure launched NSTasks die with their application
  • From: Stefan Fisk <email@hidden>
  • Date: Fri, 25 Feb 2005 13:50:50 +0100

Is it somehow possible to make sure that all launched NSTasks get terminated when the application that owns them die?

basically i'm wrapping a command line utility, and i want to be sure that it's never left running if my application should crash for whatever reason (since it binds ports and such, which would mean that it wouldn't work properly once the application was launched again).

right now i solve it by saving the pid of the launched process and checking it at startup, to see if it's still around, but i would gladly throw that code out since it's a bit hackish (how do you really know if it's the same process?).

_______________________________________________
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


  • Prev by Date: Re: NSURLDownload Example with Progress Indicator
  • Next by Date: Total newbie struggling with NSMutableArray
  • Previous by thread: Re: Notification on network config change
  • Next by thread: Total newbie struggling with NSMutableArray
  • Index(es):
    • Date
    • Thread