]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix shutdown hang on Solaris with lots of piped TransferLogs and at
authorGreg Ames <gregames@apache.org>
Mon, 11 Jun 2001 20:35:28 +0000 (20:35 +0000)
committerGreg Ames <gregames@apache.org>
Mon, 11 Jun 2001 20:35:28 +0000 (20:35 +0000)
least one piped ErrorLog

Submitted by:   Justin Erenkrantz
Reviewed by:    Greg Ames

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@89340 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_main.c

index 9eb7bed41562ce9629fa9d3d08ba463bb8ce0b75..8a4b4fcc88529a29b2d0671daaa7cd915d304bc3 100644 (file)
@@ -2509,7 +2509,7 @@ static void reclaim_child_processes(int terminate)
            waitret = waitpid(ocr->pid, &status, WNOHANG);
            if (waitret == ocr->pid) {
                ocr->pid = -1;
-               (*ocr->maintenance) (OC_REASON_DEATH, ocr->data, (ap_wait_t)status);
+               (*ocr->maintenance) (OC_REASON_RESTART, ocr->data, (ap_wait_t)status);
            }
            else if (waitret == 0) {
                (*ocr->maintenance) (OC_REASON_RESTART, ocr->data, (ap_wait_t)-1);