You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2008/06/05 19:27:57 UTC
svn commit: r663670 -
/httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c
Author: wrowe
Date: Thu Jun 5 10:27:56 2008
New Revision: 663670
URL: http://svn.apache.org/viewvc?rev=663670&view=rev
Log:
For winnt_mpm console mode, always reset our console handler to be the first,
even on a restart, because some modules (e.g. mod_perl) might have set a console
handler to terminate the process.
PR: 44800 (part 1/3)
Submitted by: tdonovan
Backports: r663669
Modified:
httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c
Modified: httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c?rev=663670&r1=663669&r2=663670&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c (original)
+++ httpd/httpd/branches/2.2.x/server/mpm/winnt/mpm_winnt.c Thu Jun 5 10:27:56 2008
@@ -1594,10 +1594,6 @@
}
}
}
- else /* ! -k runservice */
- {
- mpm_start_console_handler();
- }
/* Create the start mutex, as an unnamed object for security.
* Ths start mutex is used during a restart to prevent more than
@@ -1613,6 +1609,12 @@
return HTTP_INTERNAL_SERVER_ERROR;
}
}
+ /* Always reset our console handler to be the first, even on a restart
+ * because some modules (e.g. mod_perl) might have set a console
+ * handler to terminate the process.
+ */
+ if (strcasecmp(signal_arg, "runservice"))
+ mpm_start_console_handler();
}
else /* parent_pid != my_pid */
{