]> granicus.if.org Git - apache/commitdiff
When an exception in a worker thread initiates a child shutdown, get things
authorBrian Havard <bjh@apache.org>
Wed, 17 Apr 2002 14:55:20 +0000 (14:55 +0000)
committerBrian Havard <bjh@apache.org>
Wed, 17 Apr 2002 14:55:20 +0000 (14:55 +0000)
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

server/mpm/mpmt_os2/mpmt_os2_child.c

index c18bbb148fd56ba6a49aa324639611f9f3f94ffa..1b29c3aa08e9580be050c33ff24c7ca18d1dd912 100644 (file)
@@ -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);
     }