Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.