apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: apr_proc_create
Date Wed, 12 Apr 2006 02:34:04 GMT
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

Mime
View raw message