From: Greg Ames Date: Mon, 11 Jun 2001 20:35:28 +0000 (+0000) Subject: fix shutdown hang on Solaris with lots of piped TransferLogs and at X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5c0111b2a5902099400004a39cfd71c4e929d43;p=thirdparty%2Fapache%2Fhttpd.git fix shutdown hang on Solaris with lots of piped TransferLogs and at 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 --- diff --git a/src/main/http_main.c b/src/main/http_main.c index 9eb7bed4156..8a4b4fcc885 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -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);