]> granicus.if.org Git - apache/commit
Allow restart of httpd to occur even with syntax errors in the config
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Feb 2003 07:04:50 +0000 (07:04 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Feb 2003 07:04:50 +0000 (07:04 +0000)
commit6842cd40fa610b8470dd702f619ead52ae77ca1b
tree78d50c4c9cb26a743a140601a1596d959214011a
parent451d1ffea07350bf205835291b59550aa68c1de3
Allow restart of httpd to occur even with syntax errors in the config
file.  (Out-of-date DSOs with bad MMNs will still be fatal unfortunately.)

Add return parameter to ap_process_config_tree - OK on success, !OK on
syntax error.  We will no longer call exit() from ap_process_config_tree.
The caller must exit if there is an error (makes sense anyway).  This allows
the initial start-up code to delay the exit until trying to let the
signal_server optional function execute first.

(The chances are that the syntax error isn't in the PidFile directive.  If
that happens, we'll try the default one.  Oh, well.)

PR: 16813

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98693 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
include/http_config.h
server/config.c
server/main.c