From: William A. Rowe Jr Date: Fri, 3 Nov 2000 04:39:41 +0000 (+0000) Subject: John's patches to provide depreciated messages for the -i and -u X-Git-Tag: APACHE_2_0_ALPHA_8~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86f8525177f98bf32f59bb8ad31578ac51cc6765;p=apache John's patches to provide depreciated messages for the -i and -u options (now -k install|uninstall), and best yet, restart the console mode server on Ctrl+Break (Ctrl+C still stops it.) At least this is the second half - sorry I missed a bit. Submitted by: John Sterling Reviewed by: William Rowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86821 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/service.c b/server/mpm/winnt/service.c index 6c40192a58..b02b2d98ce 100644 --- a/server/mpm/winnt/service.c +++ b/server/mpm/winnt/service.c @@ -285,8 +285,11 @@ static BOOL CALLBACK console_control_handler(DWORD ctrl_type) { switch (ctrl_type) { - case CTRL_C_EVENT: case CTRL_BREAK_EVENT: + fprintf(stderr, "Apache server restarting...\n"); + signal_parent(1); + return TRUE; + case CTRL_C_EVENT: fprintf(stderr, "Apache server interrupted...\n"); /* for Interrupt signals, shut down the server. * Tell the system we have dealt with the signal