]> granicus.if.org Git - apache/commitdiff
Fixed the unload process so that the console command gets properly
authorBradley Nicholes <bnicholes@apache.org>
Fri, 1 Feb 2002 17:29:27 +0000 (17:29 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Fri, 1 Feb 2002 17:29:27 +0000 (17:29 +0000)
unregistered.  This fixes the 88 unreleased resources after termination

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

server/mpm/netware/mpm_netware.c

index 634c994cdd2ded4e0a939687b06ce1f81ea50ac6..06747531a1fc23f84b01e4e4e6dc816cb81fb399 100644 (file)
@@ -183,6 +183,8 @@ static apr_thread_mutex_t *worker_thread_count_mutex;
 static int request_count;
 
 /*  Structure used to register/deregister a console handler with the OS */
+static int InstallConsoleHandler(void);
+static void RemoveConsoleHandler(void);
 static int CommandLineInterpreter(scr_t screenID, const char *commandLine);
 static  CommandParser_t ConsoleHandler = {0, NULL, 0};
 #define HANDLEDCOMMAND  0
@@ -270,7 +272,7 @@ ap_generation_t volatile ap_my_generation=0;
 
 static void mpm_term(void)
 {
-    UnRegisterConsoleCommand(&ConsoleHandler);
+    RemoveConsoleHandler();
     wait_to_finish = 0;
 }
 
@@ -319,7 +321,7 @@ int nlmUnloadSignaled()
         NXThreadYield();
     }
 */
-    return 0;
+    return 1;
 }
 
 /*****************************************************************