Bug 50350 - unusual behavior of httpd with no -k
Summary: unusual behavior of httpd with no -k
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Keywords: FixedInTrunk
Depends on:
Reported: 2010-11-27 15:17 UTC by Eric Covener
Modified: 2010-12-04 07:52 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Covener 2010-11-27 15:17:34 UTC
when httpd is invoked without any -k option, mpm_common never registers ap_signal_server, which causes main() in server/main.c to continue through to startup-style processing without trying to look for an old pidfile.


apachectl -f conf/httpd.conf
sleep 2
apachectl -f conf/httpd.conf

vs. any of the normal forms (single apachectl positional argument, or trailing -k start). 

Possible solutions would be to treat lack of -k arg even more like "start" and register signal_server, or blow up in the rewrite args hook (and check its return value) when no -k at all is present (maybe this in trunk?).
Comment 1 Eric Covener 2010-11-28 19:12:43 UTC
r1039989 in trunk checks the pidfile when this implied -k start is being used.
Comment 2 Eric Covener 2010-12-04 07:52:10 UTC
not backporting