From: Bradley Nicholes Date: Fri, 1 Feb 2002 17:29:27 +0000 (+0000) Subject: Fixed the unload process so that the console command gets properly X-Git-Tag: 2.0.32~152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=936f36684e85b4d84672491842f0b33fda0b1a3f;p=apache Fixed the unload process so that the console command gets properly 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 --- diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index 634c994cdd..06747531a1 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -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; } /*****************************************************************