You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "John K. Sterling" <st...@covalent.net> on 2000/11/03 00:29:58 UTC
[PATCH] win32 allow restart with ctrl-break
currently we allow ctrl-c to do a proper shutdown of a console win32
apache. this patch allows ctrl-break to signal a restart.
sterling
Index: src/modules/mpm/winnt/service.c
===================================================================
RCS file: /home/cvspublic/apache-2.0/src/modules/mpm/winnt/service.c,v
retrieving revision 1.24
diff -u -r1.24 service.c
--- src/modules/mpm/winnt/service.c 2000/10/06 17:24:42 1.24
+++ src/modules/mpm/winnt/service.c 2000/11/02 23:23:44
@@ -285,8 +285,11 @@
{
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