Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 45911 invoked from network); 8 Apr 2009 16:51:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 16:51:57 -0000 Received: (qmail 45258 invoked by uid 500); 8 Apr 2009 16:51:56 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 45166 invoked by uid 500); 8 Apr 2009 16:51:56 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 45154 invoked by uid 99); 8 Apr 2009 16:51:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 16:51:56 +0000 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 16:51:54 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id D8864234C051; Wed, 8 Apr 2009 09:51:32 -0700 (PDT) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 46995] New: httpd / apachectl do not return exit codes when they should X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: Core X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dheld@fortify.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 8 Apr 2009 09:51:32 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=46995 Summary: httpd / apachectl do not return exit codes when they should Product: Apache httpd-2 Version: 2.2.11 Platform: Sun OS/Version: Solaris Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: bugs@httpd.apache.org ReportedBy: dheld@fortify.com Steps to reproduce: 1. (May not be specifically required) Compile apache 2.2.11 on Solaris 10 on i386 (VMWare), with options: ./configure --disable-actions --disable-alias --disable-asis --disable-auth --disable-auth-basic --disable-authn-default --disable-authn-file --disable-authz-default --disable-authz-groupfile --disable-authz-user --disable-autoindex --disable-cgi --disable-cgid --disable-charset-lite --disable-env --disable-imagemap --disable-include --disable-negotiation --disable-proxy-ajp --disable-proxy-balancer --disable-proxy-ftp --disable-setenvif --disable-status --disable-userdir --enable-proxy --enable-proxy-connect --enable-ssl --enable-unique-id --prefix=$APACHE_ROOT --with-pcre=$APACHE_DEPS_ROOT 2. Assuming apache is configured to start correctly, type the following commands: $APACHE_ROOT/bin/httpd -k start echo $? $APACHE_ROOT/bin/httpd -k start echo $? $APACHE_ROOT/bin/httpd -k stop echo $? $APACHE_ROOT/bin/httpd -k stop echo $? Note that I am starting apache twice, and stopping it twice. Expected results: 1. The first start succeeds, and returns exit code 0 2. The second start fails, and returns nonzero exit code 3. The first stop succeeds, and returns exit code 0 4. The second stop suceeds, and returns nonzero exit code. Actual results: 1 and 3 as expected. Result 2 prints an error message but returns 0. Result 4 prints an error message but returns 0. Notes: Replace 'httpd -k' with 'apachectl' wrapper, and the results are similar :-( -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org