]> granicus.if.org Git - apache/commitdiff
Add some additional shutdown synchronization so that we don't get the OS
authorBradley Nicholes <bnicholes@apache.org>
Mon, 15 Apr 2002 19:23:59 +0000 (19:23 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Mon, 15 Apr 2002 19:23:59 +0000 (19:23 +0000)
message to force the module to unload.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94660 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/netware/mpm_netware.c

index 9ec63fb2f7e012a7e7cfffc92d39d3d606080ef9..f29e61af044e2c242302492e97fe6103487d1451 100644 (file)
@@ -276,6 +276,7 @@ static void mpm_term(void)
 {
     RemoveConsoleHandler();
     wait_to_finish = 0;
+    NXThreadYield();
 }
 
 static void sig_term(int sig)
@@ -319,12 +320,11 @@ int nlmUnloadSignaled()
 {
     shutdown_pending = 1;
 
-/* Hold off on this change for now */
-/*    while (wait_to_finish) {
+    while (wait_to_finish) {
         NXThreadYield();
     }
-*/
-    return 1;
+
+    return 0;
 }
 
 /*****************************************************************