Re: Best way to ensure prevent multiplying helper tasks
Re: Best way to ensure prevent multiplying helper tasks
- Subject: Re: Best way to ensure prevent multiplying helper tasks
- From: Daniel Jalkut <email@hidden>
- Date: Fri, 16 Dec 2005 18:04:39 -0500
Hmm, I'll have to think about that. In my particular case the helper
process is assisting a web browser plugin. So I don't really want it
to live on as long as the browser is running - just as long as my
plugin is using it, and maybe a few minutes longer.
I didn't know about that technote, though. I am sure that will come
in handy at some point.
Daniel
On Dec 16, 2005, at 5:52 PM, John Stiles wrote:
Your client process could quit itself if the server app dies by
observing process lifetimes:
http://developer.apple.com/technotes/tn/tn2050.html
This way you don't need timers or polling to determine if the
server app has died. (Although a timer that fires, say, once an
hour to check for the server app is hardly a big deal either.)
The sample code in this technote is horribly bloated, but the
techniques are applicable.
_______________________________________________
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