summaryrefslogtreecommitdiff
path: root/include/ap_mpm.h
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>1999-12-13 22:53:25 +0000
committerRyan Bloom <rbb@apache.org>1999-12-13 22:53:25 +0000
commit57a64feae6cd7e06d3ddb60183fc8ef4f0d0a14b (patch)
tree0f4d4a517841ae7077cba404afef619917535692 /include/ap_mpm.h
parent0d022946bc0dea99b1da7e923edd5627b4e11d75 (diff)
downloadhttpd-57a64feae6cd7e06d3ddb60183fc8ef4f0d0a14b.tar.gz
Fix some warnings when configured with --enable-maintainer-mode.
ap_start_(shutdown|restart) are no longer static in dexter, because we explicitly state we are creating them to be called from places other than the parent. This is the first in a series of patches to get the 2.0 code to compile cleanly again. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84290 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/ap_mpm.h')
-rw-r--r--include/ap_mpm.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/ap_mpm.h b/include/ap_mpm.h
index aedf35443a..7e021beeb2 100644
--- a/include/ap_mpm.h
+++ b/include/ap_mpm.h
@@ -112,6 +112,22 @@ API_EXPORT(int) ap_mpm_run(ap_context_t *pconf, ap_context_t *plog, server_rec *
used by the connection loop */
API_EXPORT(int) ap_graceful_stop_signalled(void);
+/*
+ * ap_start_shutdown() and ap_start_restart() are functions to initiate
+ * shutdown or restart without relying on signals.
+ *
+ * These should only be called from the parent process itself, since the
+ * parent process will use the shutdown_pending and restart_pending variables
+ * to determine whether to shutdown or restart. The child process should
+ * call signal_parent() directly to tell the parent to die -- this will
+ * cause neither of those variable to be set, which the parent will
+ * assume means something serious is wrong (which it will be, for the
+ * child to force an exit) and so do an exit anyway.
+ */
+
+void ap_start_shutdown(void);
+void ap_start_restart(int graceful);
+
#ifdef HAS_OTHER_CHILD
/*
* register an other_child -- a child which the main loop keeps track of