Re: Detecting that a process has ended?
Re: Detecting that a process has ended?
- Subject: Re: Detecting that a process has ended?
- From: Chris Suter <email@hidden>
- Date: Sat, 27 Jun 2009 19:27:14 +1000
Hi Rick,
On Sat, Jun 27, 2009 at 7:22 PM, Ken Thomases<email@hidden> 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.
Regards,
Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden