• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Restarting an app -- AppleScript 'launch' in a detached shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Restarting an app -- AppleScript 'launch' in a detached shell (From: Steve Cronin <email@hidden>)
 >Re: Restarting an app -- AppleScript 'launch' in a detached shell (From: Andrew Farmer <email@hidden>)
 >Re: Restarting an app -- AppleScript 'launch' in a detached shell (From: "Michael Ash" <email@hidden>)
 >Re: Restarting an app -- AppleScript 'launch' in a detached shell (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: NSSplitView Question
  • Next by Date: Re: How to get music list?
  • Previous by thread: Re: Restarting an app -- AppleScript 'launch' in a detached shell
  • Next by thread: Re: Restarting an app -- AppleScript 'launch' in a detached shell
  • Index(es):
    • Date
    • Thread