]> granicus.if.org Git - apache/commit
Win32: Prevent listening sockets from being inherited by
authorBill Stoddard <stoddard@apache.org>
Fri, 13 Jul 2001 18:46:15 +0000 (18:46 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 13 Jul 2001 18:46:15 +0000 (18:46 +0000)
commit1ad8da54656a57dc5dc5a55eafb3eced46f4b2b3
treecb7ce7971190302dab9c5e3805bf6663e0946d3d
parent5187b4495348c382a69e4e43d0ceb281e7f05613
Win32: Prevent listening sockets from being inherited by
the Apache child process, CGI scripts, rotatelog process
etc.  If the Apache child process segfaults, any processes
that the child started are not reaped. Prior to this fix,
these processes inherited the listening sockets which sometimes
prevented the restarted Apache child process from accepting
connections (ie, the server would hang).

The Sleep(1000) is a bit of a hack but it is sufficient I believe. All
that is really necessary is for the parent to give up its quantum and
allow the child to run. I could not get WaitForInputIdle to work properly.
Will investigate alternative solutions later.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89547 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/mpm/winnt/mpm_winnt.c