]> granicus.if.org Git - apache/commitdiff
Small change in an effort to get restarts working correctly on BeOS.
authorDavid Reid <dreid@apache.org>
Thu, 22 Jun 2000 00:41:43 +0000 (00:41 +0000)
committerDavid Reid <dreid@apache.org>
Thu, 22 Jun 2000 00:41:43 +0000 (00:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85653 13f79535-47bb-0310-9956-ffa450edef68

server/mpm_common.c

index cd2f54c69dd8f7e0a3fecc7eac92a3ae71219ab9..0a7aee56b0a0e6f408325c4ed4b3463ae84da6fd 100644 (file)
@@ -160,7 +160,17 @@ void ap_reclaim_child_processes(int terminate)
                              0, ap_server_conf,
                    "child process %ld still did not exit, sending a SIGKILL",
                              (long)pid);
+#ifndef BEOS
                 kill(pid, SIGKILL);
+#else
+                /* sending a SIGKILL kills the entire team on BeOS, and as
+                 * httpd thread is part of that team it removes any chance
+                 * of ever doing a restart.  To counter this I'm changing to
+                 * use a kinder, gentler way of killing a specific thread
+                 * that is just as effective.
+                 */
+                kill_thread(pid);
+#endif
                 break;
             case 9:     /* 14 sec */
                 /* gave it our best shot, but alas...  If this really