*/
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
extern apr_lockmech_e ap_accept_lock_mech;
-const char *ap_mpm_show_accept_lock_mech(void);
+extern const char ap_valid_accept_mutex_string[];
const char *ap_mpm_set_accept_lock_mech(cmd_parms *cmd, void *dummy,
const char *arg);
#endif
#endif
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
AP_INIT_TAKE1("AcceptMutex", ap_mpm_set_accept_lock_mech, NULL, RSRC_CONF, \
- "The system mutex implementation to use for the accept mutex"),
+ ap_valid_accept_mutex_string),
#endif
{ NULL }
};
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, ap_server_conf,
"Server built: %s", ap_get_server_built());
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
- "AcceptMutex: %s", ap_mpm_show_accept_lock_mech());
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, 0, ap_server_conf,
+ "AcceptMutex: %s", ap_valid_accept_mutex_string);
#endif
restart_pending = shutdown_pending = 0;
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, ap_server_conf,
"Server built: %s", ap_get_server_built());
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
- "AcceptMutex: %s", ap_mpm_show_accept_lock_mech());
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, 0, ap_server_conf,
+ "AcceptMutex: %s", ap_valid_accept_mutex_string);
#endif
if (one_process) {
ap_scoreboard_image->parent[0].pid = getpid();
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, ap_server_conf,
"Server built: %s", ap_get_server_built());
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
- "AcceptMutex: %s", ap_mpm_show_accept_lock_mech());
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, 0, ap_server_conf,
+ "AcceptMutex: %s", ap_valid_accept_mutex_string);
#endif
show_server_data();
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, ap_server_conf,
"Server built: %s", ap_get_server_built());
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
- "AcceptMutex: %s", ap_mpm_show_accept_lock_mech());
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, 0, ap_server_conf,
+ "AcceptMutex: %s", ap_valid_accept_mutex_string);
#endif
restart_pending = shutdown_pending = 0;
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, ap_server_conf,
"Server built: %s", ap_get_server_built());
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
- "AcceptMutex: %s", ap_mpm_show_accept_lock_mech());
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, 0, ap_server_conf,
+ "AcceptMutex: %s", ap_valid_accept_mutex_string);
#endif
restart_pending = shutdown_pending = 0;
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_INFO, 0, ap_server_conf,
"Server built: %s", ap_get_server_built());
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
- "AcceptMutex: %s", ap_mpm_show_accept_lock_mech());
+ ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_DEBUG, 0, ap_server_conf,
+ "AcceptMutex: %s", ap_valid_accept_mutex_string);
#endif
restart_pending = shutdown_pending = 0;
#ifdef AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
apr_lockmech_e ap_accept_lock_mech = APR_LOCK_DEFAULT;
-AP_DECLARE(const char *) ap_mpm_show_accept_lock_mech(void)
-{
-
- return ("Valid accept mutexes for this platform and MPM are: default"
+const char ap_valid_accept_mutex_string[] =
+ "Valid accept mutexes for this platform and MPM are: default"
#if APR_HAS_FLOCK_SERIALIZE
- ", flock"
+ ", flock"
#endif
#if APR_HAS_FCNTL_SERIALIZE
- ", fcntl"
+ ", fcntl"
#endif
#if APR_HAS_SYSVSEM_SERIALIZE && !defined(PERCHILD_MPM)
- ", sysvsem"
+ ", sysvsem"
#endif
#if APR_HAS_PROC_PTHREAD_SERIALIZE
- ", pthread"
+ ", pthread"
#endif
- ".");
-}
+ ".";
AP_DECLARE(const char *) ap_mpm_set_accept_lock_mech(cmd_parms *cmd,
void *dummy,
#endif
else {
return apr_pstrcat(cmd->pool, arg, " is an invalid mutex mechanism; ",
- ap_mpm_show_accept_lock_mech(), NULL);
+ ap_valid_accept_mutex_string, NULL);
}
return NULL;
}