* 20140207.4 (2.5.0-dev) add ap_mpm_register_socket_callback_timeout
* 20140207.5 (2.5.0-dev) Add ap_mpm_resume_suspended(), AP_MPMQ_CAN_SUSPEND to
* ap_mpm_query(), and suspended_baton to conn_rec
+ * 20140207.6 (2.5.0-dev) Added ap_log_common().
*/
#define MODULE_MAGIC_COOKIE 0x41503235UL /* "AP25" */
#ifndef MODULE_MAGIC_NUMBER_MAJOR
#define MODULE_MAGIC_NUMBER_MAJOR 20140207
#endif
-#define MODULE_MAGIC_NUMBER_MINOR 5 /* 0...n */
+#define MODULE_MAGIC_NUMBER_MINOR 6 /* 0...n */
/**
* Determine if the server's current MODULE_MAGIC_NUMBER is at least a
*/
AP_DECLARE(void) ap_log_command_line(apr_pool_t *p, server_rec *s);
+/**
+ * Log common shared data
+ * @param s The server_rec whose process's command line we want to log.
+ * Misc commonly logged data is logged to that server's error log.
+ */
+AP_DECLARE(void) ap_log_common(server_rec *s);
+
/**
* Log the current pid of the parent process
* @param p The pool to use for processing
#include "util_time.h"
#include "ap_mpm.h"
#include "ap_provider.h"
+#include "ap_listen.h"
#if HAVE_GETTID
#include <sys/syscall.h>
"Command line: '%s'", result);
}
+/* grab bag function to log commonly logged and shared info */
+AP_DECLARE(void) ap_log_common(server_rec *s)
+{
+ ap_log_error(APLOG_MARK, APLOG_DEBUG , 0, s, APLOGNO(02639)
+ "Using SO_REUSEPORT: %s (%d)",
+ have_so_reuseport ? "yes" : "no",
+ num_buckets);
+}
+
AP_DECLARE(void) ap_remove_pid(apr_pool_t *p, const char *rel_fname)
{
apr_status_t rv;