DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43696>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43696

           Summary: race condition when trying to shutdown httpd immediately
                    after starting it
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: All
        OS/Version: other
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: prefork
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


This was first noticed while using httpd 2.2.3 on Solaris SPARC, but the bug is
still present in httpd 2.2.6 and could surface on any platform using prefork.

The issue is that the signal handlers are installed before the restart_pending
and shutdown_pending variables are initialized.  If httpd receives SIGTERM while
child processes are being spawned, it will be completely ignored.  The following
two commands, one immediately called after the other, can reproduce the 
situation:

  httpd -k start
  httpd -k stop

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to