mpm_common.h revision 0807f6da6091b748ab47c21ba66252fe8da2a966
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/* Licensed to the Apache Software Foundation (ASF) under one or more
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * contributor license agreements. See the NOTICE file distributed with
240b85022b73af58a6d971cd3d05d54037d8f682nd * this work for additional information regarding copyright ownership.
240b85022b73af58a6d971cd3d05d54037d8f682nd * The ASF licenses this file to You under the Apache License, Version 2.0
240b85022b73af58a6d971cd3d05d54037d8f682nd * (the "License"); you may not use this file except in compliance with
240b85022b73af58a6d971cd3d05d54037d8f682nd * the License. You may obtain a copy of the License at
240b85022b73af58a6d971cd3d05d54037d8f682nd *
240b85022b73af58a6d971cd3d05d54037d8f682nd * http://www.apache.org/licenses/LICENSE-2.0
240b85022b73af58a6d971cd3d05d54037d8f682nd *
240b85022b73af58a6d971cd3d05d54037d8f682nd * Unless required by applicable law or agreed to in writing, software
240b85022b73af58a6d971cd3d05d54037d8f682nd * distributed under the License is distributed on an "AS IS" BASIS,
240b85022b73af58a6d971cd3d05d54037d8f682nd * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
240b85022b73af58a6d971cd3d05d54037d8f682nd * See the License for the specific language governing permissions and
240b85022b73af58a6d971cd3d05d54037d8f682nd * limitations under the License.
240b85022b73af58a6d971cd3d05d54037d8f682nd */
240b85022b73af58a6d971cd3d05d54037d8f682nd
240b85022b73af58a6d971cd3d05d54037d8f682nd/* The purpose of this file is to store the code that MOST mpm's will need
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * this does not mean a function only goes into this file if every MPM needs
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * it. It means that if a function is needed by more than one MPM, and
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * future maintenance would be served by making the code common, then the
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * function belongs here.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames *
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * This is going in src/main because it is not platform specific, it is
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * specific to multi-process servers, but NOT to Unix. Which is why it
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * does not belong in src/os/unix
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/**
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @file mpm_common.h
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @brief Multi-Processing Modules functions
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames *
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @defgroup APACHE_MPM Multi-Processing Modules
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @ingroup APACHE
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @{
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#ifndef APACHE_MPM_COMMON_H
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#define APACHE_MPM_COMMON_H
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#include "ap_config.h"
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#include "ap_mpm.h"
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#if APR_HAVE_NETINET_TCP_H
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#include <netinet/tcp.h> /* for TCP_NODELAY */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#endif
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#include "apr_proc_mutex.h"
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#ifdef __cplusplus
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregamesextern "C" {
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#endif
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/* The maximum length of the queue of pending connections, as defined
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * by listen(2). Under some systems, it should be increased if you
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * are experiencing a heavy TCP SYN flood attack.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames *
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * It defaults to 511 instead of 512 because some systems store it
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * as an 8-bit datatype; 512 truncated to 8-bits is 0, while 511 is
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * 255 when truncated.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#ifndef DEFAULT_LISTENBACKLOG
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#define DEFAULT_LISTENBACKLOG 511
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#endif
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/* Signal used to gracefully restart */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#define AP_SIG_GRACEFUL SIGUSR1
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
cd2e0fb5f8e86eecb278e9d623f4c272d96f5e3ctrawick/* Signal used to gracefully restart (without SIG prefix) */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#define AP_SIG_GRACEFUL_SHORT USR1
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/* Signal used to gracefully restart (as a quoted string) */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#define AP_SIG_GRACEFUL_STRING "SIGUSR1"
86826d685f83170ca07d56550db9f0c2922a916btrawick
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/* Signal used to gracefully stop */
cd2e0fb5f8e86eecb278e9d623f4c272d96f5e3ctrawick#define AP_SIG_GRACEFUL_STOP SIGWINCH
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/* Signal used to gracefully stop (without SIG prefix) */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#define AP_SIG_GRACEFUL_STOP_SHORT WINCH
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
cd2e0fb5f8e86eecb278e9d623f4c272d96f5e3ctrawick/* Signal used to gracefully stop (as a quoted string) */
cd2e0fb5f8e86eecb278e9d623f4c272d96f5e3ctrawick#define AP_SIG_GRACEFUL_STOP_STRING "SIGWINCH"
cd2e0fb5f8e86eecb278e9d623f4c272d96f5e3ctrawick
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/**
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * Make sure all child processes that have been spawned by the parent process
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * have died. This includes process registered as "other_children".
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param terminate Either 1 or 0. If 1, send the child processes SIGTERM
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * each time through the loop. If 0, give the process time to die
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * on its own before signalling it.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @note This function requires that a hook is implemented by the MPM: <pre>
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * mpm_note_child_killed -- Note the child died in the scoreboard
43162230430f8144afe9c32cd0e60b927f4e0a60gregames * </pre>
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames *
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @note The MPM child processes which are reclaimed are those listed
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * in the scoreboard as well as those currently registered via
88dd056b9863502bba82c2889a0c4cde9fc0ba93trawick * ap_register_extra_mpm_process().
1c86147fa9b58111f7df3b0e24a5bf97833d5d84trawick */
89211a5d592cdf0170d2b541946661b1a2a279c5trawickvoid ap_reclaim_child_processes(int terminate);
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/**
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * Catch any child processes that have been spawned by the parent process
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * which have exited. This includes processes registered as "other_children".
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames *
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @note This function requires that a hook is implemented by the MPM: <pre>
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * mpm_note_child_killed -- Note the child died in the scoreboard
43162230430f8144afe9c32cd0e60b927f4e0a60gregames * </pre>
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames *
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick * @note The MPM child processes which are relieved are those listed
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick * in the scoreboard as well as those currently registered via
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick * ap_register_extra_mpm_process().
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick */
8b30d716ef6380801f225010838faa3c00141a06trawickvoid ap_relieve_child_processes(void);
8b30d716ef6380801f225010838faa3c00141a06trawick
8b30d716ef6380801f225010838faa3c00141a06trawick/**
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick * Tell ap_reclaim_child_processes() and ap_relieve_child_processes() about
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * an MPM child process which has no entry in the scoreboard.
8b30d716ef6380801f225010838faa3c00141a06trawick * @param pid The process id of an MPM child process which should be
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick * reclaimed when ap_reclaim_child_processes() is called.
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick *
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick * @note If an extra MPM child process terminates prior to calling
d468ce085370fb85e0cb4e3b48bd1a47c2eca33ctrawick * ap_reclaim_child_processes(), remove it from the list of such processes
c0d403aebd449af101969d1ff60a8cbcf9ecf35cgregames * by calling ap_unregister_extra_mpm_process().
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregamesvoid ap_register_extra_mpm_process(pid_t pid);
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/**
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * Unregister an MPM child process which was previously registered by a
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * call to ap_register_extra_mpm_process().
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param pid The process id of an MPM child process which no longer needs to
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * be reclaimed.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @return 1 if the process was found and removed, 0 otherwise
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregamesint ap_unregister_extra_mpm_process(pid_t pid);
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/**
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * Safely signal an MPM child process, if the process is in the
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * current process group. Otherwise fail.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param pid the process id of a child process to signal
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param sig the signal number to send
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @return APR_SUCCESS if signal is sent, otherwise an error as per kill(3);
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * APR_EINVAL is returned if passed either an invalid (< 1) pid, or if
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * the pid is not in the current process group
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames */
4657f9b12af4b123b80e15c73fa03c190e47a8bftrawickapr_status_t ap_mpm_safe_kill(pid_t pid, int sig);
1c86147fa9b58111f7df3b0e24a5bf97833d5d84trawick
89211a5d592cdf0170d2b541946661b1a2a279c5trawick/**
1c86147fa9b58111f7df3b0e24a5bf97833d5d84trawick * Determine if any child process has died. If no child process died, then
89211a5d592cdf0170d2b541946661b1a2a279c5trawick * this process sleeps for the amount of time specified by the MPM defined
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * macro SCOREBOARD_MAINTENANCE_INTERVAL.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param status The return code if a process has died
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param exitcode The returned exit status of the child, if a child process
8b30d716ef6380801f225010838faa3c00141a06trawick * dies, or the signal that caused the child to die.
8b30d716ef6380801f225010838faa3c00141a06trawick * @param ret The process id of the process that died
8b30d716ef6380801f225010838faa3c00141a06trawick * @param p The pool to allocate out of
8b30d716ef6380801f225010838faa3c00141a06trawick * @param s The server_rec to pass
8b30d716ef6380801f225010838faa3c00141a06trawick */
8b30d716ef6380801f225010838faa3c00141a06trawickvoid ap_wait_or_timeout(apr_exit_why_e *status, int *exitcode, apr_proc_t *ret,
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames apr_pool_t *p, server_rec *s);
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/**
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * Log why a child died to the error log, if the child died without the
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * parent signalling it.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param pid The child that has died
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param why The return code of the child process
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param status The status returned from ap_wait_or_timeout
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @return 0 on success, APEXIT_CHILDFATAL if MPM should terminate
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames */
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregamesint ap_process_child_status(apr_proc_t *pid, apr_exit_why_e why, int status);
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames#if defined(TCP_NODELAY)
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames/**
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * Turn off the nagle algorithm for the specified socket. The nagle algorithm
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * says that we should delay sending partial packets in the hopes of getting
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * more data. There are bad interactions between persistent connections and
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * Nagle's algorithm that have severe performance penalties.
3d0434b7f8ce3bfce252ebbe3cabe626ba750d83gregames * @param s The socket to disable nagle for.
*/
void ap_sock_disable_nagle(apr_socket_t *s);
#else
#define ap_sock_disable_nagle(s) /* NOOP */
#endif
#ifdef HAVE_GETPWNAM
/**
* Convert a username to a numeric ID
* @param name The name to convert
* @return The user id corresponding to a name
* @fn uid_t ap_uname2id(const char *name)
*/
AP_DECLARE(uid_t) ap_uname2id(const char *name);
#endif
#ifdef HAVE_GETGRNAM
/**
* Convert a group name to a numeric ID
* @param name The name to convert
* @return The group id corresponding to a name
* @fn gid_t ap_gname2id(const char *name)
*/
AP_DECLARE(gid_t) ap_gname2id(const char *name);
#endif
typedef struct ap_pod_t ap_pod_t;
struct ap_pod_t {
apr_file_t *pod_in;
apr_file_t *pod_out;
apr_pool_t *p;
};
/**
* Open the pipe-of-death. The pipe of death is used to tell all child
* processes that it is time to die gracefully.
* @param p The pool to use for allocating the pipe
* @param pod the pipe-of-death that is created.
*/
AP_DECLARE(apr_status_t) ap_mpm_pod_open(apr_pool_t *p, ap_pod_t **pod);
/**
* Check the pipe to determine if the process has been signalled to die.
*/
AP_DECLARE(apr_status_t) ap_mpm_pod_check(ap_pod_t *pod);
/**
* Close the pipe-of-death
*
* @param pod the pipe-of-death to close.
*/
AP_DECLARE(apr_status_t) ap_mpm_pod_close(ap_pod_t *pod);
/**
* Write data to the pipe-of-death, signalling that one child process
* should die.
* @param pod the pipe-of-death to write to.
*/
AP_DECLARE(apr_status_t) ap_mpm_pod_signal(ap_pod_t *pod);
/**
* Write data to the pipe-of-death, signalling that all child process
* should die.
* @param pod The pipe-of-death to write to.
* @param num The number of child processes to kill
*/
AP_DECLARE(void) ap_mpm_pod_killpg(ap_pod_t *pod, int num);
/**
* Check that exactly one MPM is loaded
* Returns NULL if yes, error string if not.
*/
AP_DECLARE(const char *) ap_check_mpm(void);
/*
* These data members are common to all mpms. Each new mpm
* should either use the appropriate ap_mpm_set_* function
* in their command table or create their own for custom or
* OS specific needs. These should work for most.
*/
/**
* The maximum number of requests each child thread or
* process handles before dying off
*/
extern int ap_max_requests_per_child;
const char *ap_mpm_set_max_requests(cmd_parms *cmd, void *dummy,
const char *arg);
/**
* The filename used to store the process id.
*/
extern const char *ap_pid_fname;
const char *ap_mpm_set_pidfile(cmd_parms *cmd, void *dummy,
const char *arg);
/*
* The directory that the server changes directory to dump core.
*/
extern char ap_coredump_dir[MAX_STRING_LEN];
extern int ap_coredumpdir_configured;
const char *ap_mpm_set_coredumpdir(cmd_parms *cmd, void *dummy,
const char *arg);
/**
* Set the timeout period for a graceful shutdown.
*/
extern int ap_graceful_shutdown_timeout;
const char *ap_mpm_set_graceful_shutdown(cmd_parms *cmd, void *dummy,
const char *arg);
#define AP_GRACEFUL_SHUTDOWN_TIMEOUT_COMMAND \
AP_INIT_TAKE1("GracefulShutdownTimeout", ap_mpm_set_graceful_shutdown, NULL, \
RSRC_CONF, "Maximum time in seconds to wait for child " \
"processes to complete transactions during shutdown")
int ap_signal_server(int *, apr_pool_t *);
void ap_mpm_rewrite_args(process_rec *);
extern apr_uint32_t ap_max_mem_free;
extern const char *ap_mpm_set_max_mem_free(cmd_parms *cmd, void *dummy,
const char *arg);
extern apr_size_t ap_thread_stacksize;
extern const char *ap_mpm_set_thread_stacksize(cmd_parms *cmd, void *dummy,
const char *arg);
extern apr_status_t ap_fatal_signal_setup(server_rec *s, apr_pool_t *pconf);
extern apr_status_t ap_fatal_signal_child_setup(server_rec *s);
#if AP_ENABLE_EXCEPTION_HOOK
extern const char *ap_mpm_set_exception_hook(cmd_parms *cmd, void *dummy,
const char *arg);
#endif
AP_DECLARE(apr_status_t) ap_mpm_note_child_killed(int childnum);
AP_DECLARE_HOOK(int,monitor,(apr_pool_t *p, server_rec *s))
/* register modules that undertake to manage system security */
AP_DECLARE(int) ap_sys_privileges_handlers(int inc);
AP_DECLARE_HOOK(int, drop_privileges, (apr_pool_t * pchild, server_rec * s))
/* implement the ap_mpm_query() function
* The MPM should return OK+APR_ENOTIMPL for any unimplemented query codes;
* modules which intercede for specific query codes should DECLINE for others.
*/
AP_DECLARE_HOOK(int, mpm_query, (int query_code, int *result, apr_status_t *rv))
/* child specified by index has been killed */
AP_DECLARE_HOOK(apr_status_t, mpm_note_child_killed, (int childnum))
/* register the specified callback */
AP_DECLARE_HOOK(apr_status_t, mpm_register_timed_callback,
(apr_time_t t, ap_mpm_callback_fn_t *cbfn, void *baton))
/* get MPM name (e.g., "prefork" or "event") */
AP_DECLARE_HOOK(const char *,mpm_get_name,(void))
/* mutex type string for accept mutex, if any; MPMs should use the
* same mutex type for ease of configuration
*/
#define AP_ACCEPT_MUTEX_TYPE "mpm-accept"
#ifdef __cplusplus
}
#endif
#endif /* !APACHE_MPM_COMMON_H */
/** @} */