On Jun 27, 2009, at 02:27:14, Chris Suter wrote:
Hi Rick,
On Sat, Jun 27, 2009 at 7:22 PM, Ken Thomases<k...@codeweavers.com>
wrote:
On Jun 27, 2009, at 4:11 AM, Rick Mann wrote:
I'm starting a process via NSTask and launchctl. I can use
launchctl list
to get the process' PID. Is there a way i can get notified if the
process
exits (or dies) without polling launchctl list?
http://developer.apple.com/technotes/tn/tn2050.html
I'm not sure that will be much help to you for what you're doing. If
it's not a GUI task, those methods won't work I don't think.
Do you have control over the service that you're launching? Is it your
own code? If so, there are other IPC mechanisms you could use.
I think it'll work very well. It's not a GUI process (although most of
the techniques in the TN support only processes in the current
context). In this case, the kqueues will do just fine.
--
Rick
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com