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 PROTECTED] _______________________________________________ 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 [EMAIL PROTECTED]