]> granicus.if.org Git - apache/commitdiff
When restarting [always graceful on Win32], we don't repeat pre_mpm
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 20 Mar 2002 04:29:55 +0000 (04:29 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 20 Mar 2002 04:29:55 +0000 (04:29 +0000)
  (Unix doesn't, we shouldn't either.)  [Ryan Bloom]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94032 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index 55a29e1f0dae1aa2cb85a9b3958ad0e434a97566..46e470420b7fb4f1ed425a6e93bc9ed28aaa7654 100644 (file)
@@ -2382,7 +2382,12 @@ AP_DECLARE(int) ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s )
 {
     static int restart = 0;            /* Default is "not a restart" */
 
-    if ((parent_pid == my_pid) || one_process) {
+    /* ### If non-graceful restarts are ever introduced - we need to rerun 
+     * the pre_mpm hook on subsequent non-graceful restarts.  But Win32 
+     * has only graceful style restarts - and we need this hook to act 
+     * the same on Win32 as on Unix.
+     */
+    if (!restart && ((parent_pid == my_pid) || one_process)) {
         /* Set up the scoreboard. */
         if (ap_run_pre_mpm(pconf, SB_SHARED) != OK) {
             return 1;