• 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: posix_spawn(2) (Was: Re: [Fwd: Re: execv bug???])
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posix_spawn(2) (Was: Re: [Fwd: Re: execv bug???])


  • Subject: Re: posix_spawn(2) (Was: Re: [Fwd: Re: execv bug???])
  • From: "Clark Cox" <email@hidden>
  • Date: Mon, 28 Jan 2008 04:12:41 -0800

On 1/28/08, Steve Checkoway <email@hidden> wrote:
>
> On Jan 27, 2008, at 7:23 PM, Jordan K. Hubbard wrote:
>
> >  In another couple of releases, posix_spawn(2) will also hopefully
> > be far enough in our rear view mirrors that developers can
> > standardize on it.
>
>
> I've been curious, what are the advantages to using posix_spawn(2)
> instead of fork(2) + execve(2)?

One main benefit, as I see it, is that posix_spawn avoids the address
space duplication  implied by fork, which can be quite a time-waster
when all you're going to do is blow that space away with an exec.


--
Clark S. Cox III
email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: [Fwd: Re: execv bug???] (From: email@hidden (Peter Seebach))
 >Re: [Fwd: Re: execv bug???] (From: Jonas Maebe <email@hidden>)
 >Re: [Fwd: Re: execv bug???] (From: "Jordan K. Hubbard" <email@hidden>)
 >posix_spawn(2) (Was: Re: [Fwd: Re: execv bug???]) (From: Steve Checkoway <email@hidden>)

  • Prev by Date: posix_spawn(2) (Was: Re: [Fwd: Re: execv bug???])
  • Next by Date: Re: [Fwd: Re: execv bug???]
  • Previous by thread: posix_spawn(2) (Was: Re: [Fwd: Re: execv bug???])
  • Next by thread: Re: posix_spawn(2) (Was: Re: [Fwd: Re: execv bug???])
  • Index(es):
    • Date
    • Thread