making sure launched NSTasks die with their application
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