On 13 Sep 2011, at 21:34, Scott Ribe wrote:

> On Sep 13, 2011, at 1:50 PM, Stephen J. Butler wrote:
> 
>> Programs like postgres run just fine in OS X and they rely heavily on 
>> forking.
> 
> Of course, but they don't just fork then continue execution of the same 
> image, which is what was being suggested. They fork and then exec a new image.
> 
> 

Are you sure about  this?

Looking at the apache mpm pre fork code it looks to me that the child executes 
the same image.
http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/prefork/prefork.c?view=markup

see make_child (which does the fork) and child_main (which is called in the 
child after the fork).

Regards

Jonathan Mitchell
Mugginsoft LLP

================================================
KosmicTask - the Integrated Scripting Environment for OS X.
http://www.mugginsoft.com/KosmicTask
================================================_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to