Re: CoreFoundation Command Line Tool - an easy beginner question
Re: CoreFoundation Command Line Tool - an easy beginner question
- Subject: Re: CoreFoundation Command Line Tool - an easy beginner question
- From: David Duncan <email@hidden>
- Date: Mon, 4 Aug 2008 14:19:16 -0700
On Aug 4, 2008, at 2:00 PM, Michael Ash wrote:
I think you may have missed the read() at the beginning of the
function, which is critical to the operation of the tool. (The purpose
is to wait for the parent process to quit, then restart it.) If,
however, I have instead missed a way to make the "open" tool wait for
its parent to die before opening the argument, I would very much
appreciate enlightenment on that subject.
Ah, I think you might want to make the parent process a launchd agent
instead then. I'm not completely familiar with the intricacies of this
(nor the problem to be solved in general) but it is capable of
relaunching a process when necessary, and it will also auto-throttle
the relaunch if the process is being troublesome (i.e. dying over and
over and over in a short time).
--
David Duncan
Apple DTS Animation and Printing
email@hidden
_______________________________________________
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