Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 75214 invoked from network); 5 Jun 2008 17:28:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2008 17:28:32 -0000 Received: (qmail 71334 invoked by uid 500); 5 Jun 2008 17:28:35 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 71285 invoked by uid 500); 5 Jun 2008 17:28:34 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 71276 invoked by uid 99); 5 Jun 2008 17:28:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 10:28:34 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 17:27:47 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 52E3C2388A1E; Thu, 5 Jun 2008 10:28:09 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r663671 - /httpd/httpd/branches/2.0.x/server/mpm/winnt/mpm_winnt.c Date: Thu, 05 Jun 2008 17:28:09 -0000 To: cvs@httpd.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080605172809.52E3C2388A1E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Thu Jun 5 10:28:08 2008 New Revision: 663671 URL: http://svn.apache.org/viewvc?rev=663671&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.0.x/server/mpm/winnt/mpm_winnt.c Modified: httpd/httpd/branches/2.0.x/server/mpm/winnt/mpm_winnt.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/server/mpm/winnt/mpm_winnt.c?rev=663671&r1=663670&r2=663671&view=diff ============================================================================== --- httpd/httpd/branches/2.0.x/server/mpm/winnt/mpm_winnt.c (original) +++ httpd/httpd/branches/2.0.x/server/mpm/winnt/mpm_winnt.c Thu Jun 5 10:28:08 2008 @@ -1553,10 +1553,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 @@ -1572,6 +1568,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 */ {