From: Brian Havard Date: Wed, 17 Apr 2002 14:55:20 +0000 (+0000) Subject: When an exception in a worker thread initiates a child shutdown, get things X-Git-Tag: 2.0.36~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bdcd90181607c95ca51959709db877d8bda9288;p=thirdparty%2Fapache%2Fhttpd.git When an exception in a worker thread initiates a child shutdown, get things moving sooner by sending a SIGHUP to the accept thread, breaking it out of its accept/poll. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94678 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/mpmt_os2/mpmt_os2_child.c b/server/mpm/mpmt_os2/mpmt_os2_child.c index c18bbb148fd..1b29c3aa08e 100644 --- a/server/mpm/mpmt_os2/mpmt_os2_child.c +++ b/server/mpm/mpmt_os2/mpmt_os2_child.c @@ -387,6 +387,7 @@ ULONG APIENTRY thread_exception_handler(EXCEPTIONREPORTRECORD *pReportRec, /* Shut down process ASAP, it could be quite unhealthy & leaking resources */ shutdown_pending = 1; ap_scoreboard_image->parent[child_slot].quiescing = 1; + kill(getpid(), SIGHUP); DosUnwindException(UNWIND_ALL, 0, 0); }