apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Bloom" <rbl...@gmail.com>
Subject Re: apr_proc_create
Date Wed, 12 Apr 2006 02:39:20 GMT
You could on Unix, but on Windows there is no fork command.  It is
done with CreateProc (or something like that), which doesn't have
flexibility that fork has.


On 4/11/06, Garrett Rooney <rooneg@electricjellyfish.net> wrote:
> On 4/11/06, Ryan Bloom <rbloom@gmail.com> wrote:
> > Garrett is right in theory, but doing what he suggests will break Apache.  :-)
> >
> > Basically, Apache relies on child processes to ensure that the server
> > keeps running.  If something happens to one child, the parent will
> > create another.  So, if you set the socket to be not inherited in
> > subsequent child processes, then everything will apear to work for a
> > while, and then it will just stop working when the child process dies
> > for some reason.
> Couldn't you only set the socket to not inherit in the child
> processes, after the fork?  The parent will still be set up so its
> next child inherits, right?
> -garrett

Ryan Bloom

View raw message