]> 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)
commit1a344d46b69651bba195d62c547cce259cdb99a9
tree78d50c4c9cb26a743a140601a1596d959214011a
parentd2e3c3d5fa072de730f02536d2131c6810299fe0
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