From 86f8525177f98bf32f59bb8ad31578ac51cc6765 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 3 Nov 2000 04:39:41 +0000 Subject: [PATCH] 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 --- server/mpm/winnt/service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.50.1