From: Bradley Nicholes Date: Mon, 15 Apr 2002 19:23:59 +0000 (+0000) Subject: Add some additional shutdown synchronization so that we don't get the OS X-Git-Tag: 2.0.36~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=704d15c85f6013e12850702f6d7fe90851867bf7;p=apache Add some additional shutdown synchronization so that we don't get the OS 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 --- diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index 9ec63fb2f7..f29e61af04 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -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; } /*****************************************************************