• 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: Kevin Van Vechten <email@hidden>
  • Date: Mon, 28 Jan 2008 09:36:05 -0800

On Jan 28, 2008, at 12:00 AM, Steve Checkoway 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)?

posix_spawn(2) provides the performance benefit of vfork(2) + execve(2) while still allowing you to manipulate attributes of the child process that could not safely be done with vfork(2). And it's arguably a cleaner API for process creation (though that's more a matter of style).


- Kevin

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