Re: Several Questions
Re: Several Questions
- Subject: Re: Several Questions
- From: Michael Ash <email@hidden>
- Date: Mon, 1 Jun 2009 11:43:33 -0400
On Mon, Jun 1, 2009 at 7:19 AM, Ammar Ibrahim <email@hidden> wrote:
> Great, so I understand from what you're saying that I can launch a GUI app
> using launchd? I will look into it. Also, what if the application stops
> responding? Is that something that launchd can detect?
As far as I know, no, launchd can't know if you "stop responding",
which is not a well defined condition in any case.
You'll have to do that part of it yourself. Ideally, you'll have a
separate tool (which can also be maintained by launchd) that pings the
main application periodically and kills it if it doesn't respond
within some timeout. This tool would be as small as possible to reduce
the chance of a hanging bug in it. You could do a similar thing by
simply spawning a watchdog thread within your own application,
although the chance for mishap is higher there.
Mike
_______________________________________________
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