stoddard 99/10/01 10:18:31
Modified: src/modules/mpm/winnt winnt.c
Log:
Exit the child process if too many select errors
Revision Changes Path
1.13 +2 -0 apache-2.0/src/modules/mpm/winnt/winnt.c
Index: winnt.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/mpm/winnt/winnt.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- winnt.c 1999/08/31 05:33:27 1.12
+++ winnt.c 1999/10/01 17:18:28 1.13
@@ -561,6 +561,7 @@
ap_log_error(APLOG_MARK, APLOG_INFO|APLOG_WIN32ERROR,
server_conf, "select failed with errno %d", h_errno);
count_select_errors++;
if (count_select_errors > MAX_SELECT_ERRORS) {
+ workers_may_exit = 1;
ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_WIN32ERROR,
server_conf,
"Too many errors in select loop. Child process
exiting.");
break;
@@ -662,6 +663,7 @@
ap_log_error(APLOG_MARK, APLOG_INFO|APLOG_WIN32ERROR,
server_conf, "select failed with errno %d", h_errno);
count_select_errors++;
if (count_select_errors > MAX_SELECT_ERRORS) {
+ workers_may_exit = 1;
ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_WIN32ERROR,
server_conf,
"Too many errors in select loop. Child process
exiting.");
break;