From: Bradley Nicholes Date: Fri, 2 Nov 2001 18:07:17 +0000 (+0000) Subject: Added the secondary command line hander for manipulating a running X-Git-Tag: 2.0.28~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a208bee0ca3cb6919f56069afa2baf229f46ac55;p=apache Added the secondary command line hander for manipulating a running instance of Apache from the console. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91731 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/netware/mpm_netware.c b/server/mpm/netware/mpm_netware.c index 10f57bd9e4..ca094a740e 100644 --- a/server/mpm/netware/mpm_netware.c +++ b/server/mpm/netware/mpm_netware.c @@ -173,7 +173,9 @@ static CommandParser_t ConsoleHandler = {0, NULL, 0}; #define HANDLEDCOMMAND 0 #define NOTMYCOMMAND 1 -#if 1 +static int show_settings = 0; + +#if 0 #define DBPRINT0(s) printf(s) #define DBPRINT1(s,v1) printf(s,v1) #define DBPRINT2(s,v1,v2) printf(s,v1,v2) @@ -195,19 +197,6 @@ static void clean_child_exit(int code, int worker_num) NXThreadExit((void*)&code); } -static apr_status_t accept_mutex_child_cleanup(void *foo) -{ - return apr_thread_mutex_unlock(accept_mutex); -} - -/* Initialize mutex lock. - * Done by each child at its birth - */ -static void accept_mutex_child_init(apr_pool_t *p) -{ - apr_pool_cleanup_register(p, NULL, accept_mutex_child_cleanup, apr_pool_cleanup_null); -} - AP_DECLARE(apr_status_t) ap_mpm_query(int query_code, int *result) { switch(query_code){ @@ -714,6 +703,69 @@ static void perform_idle_server_maintenance(apr_pool_t *p) } } +static void display_settings () +{ + int status_array[SERVER_NUM_STATUS]; + int i, status, total=0; + + ClearScreen (getscreenhandle()); + printf("%s \n", ap_get_server_version()); + + for (i=0;iservers[0][i]).status; + status_array[status]++; + } + + for (i=0;i