Re: Restarting an app -- AppleScript 'launch' in a detached shell
Re: Restarting an app -- AppleScript 'launch' in a detached shell
- Subject: Re: Restarting an app -- AppleScript 'launch' in a detached shell
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 4 Aug 2008 02:50:40 -0400
On Mon, Aug 4, 2008 at 12:22 AM, Andrew Farmer <email@hidden> wrote:
> The double-fork is to fully detach the child process from the parent - note
> that all of the parent processes immediately die, because fork() returns
> nonzero.
But you've still introduced a race condition. You can more robustly
accomplish the same goal by using a pipe or mutex or some other IPC
primitive to synchronize the two processes.
--Kyle Sluder
_______________________________________________
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