You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2009/03/25 17:33:57 UTC
svn commit: r758335 - /httpd/httpd/trunk/server/main.c
Author: trawick
Date: Wed Mar 25 16:33:53 2009
New Revision: 758335
URL: http://svn.apache.org/viewvc?rev=758335&view=rev
Log:
resurrect the call to show_mpm_settings(), but defer the entire -V processing until
after module loading if there is no built-in MPM
(we could just defer displaying the MPM info, but that would change the order of
output from what people/scripts expect)
Modified:
httpd/httpd/trunk/server/main.c
Modified: httpd/httpd/trunk/server/main.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/main.c?rev=758335&r1=758334&r2=758335&view=diff
==============================================================================
--- httpd/httpd/trunk/server/main.c (original)
+++ httpd/httpd/trunk/server/main.c Wed Mar 25 16:33:53 2009
@@ -52,9 +52,6 @@
* Most significant main() global data can be found in http_config.c
*/
-/* XXX call after module loading based on some cmd-line option/define
- */
-
static void show_mpm_settings(void)
{
int mpm_query_info;
@@ -111,6 +108,8 @@
*/
printf("Architecture: %ld-bit\n", 8 * (long)sizeof(void *));
+ show_mpm_settings();
+
printf("Server compiled with....\n");
#ifdef BIG_SECURITY_HOLE
printf(" -D BIG_SECURITY_HOLE\n");
@@ -465,7 +464,7 @@
int main(int argc, const char * const argv[])
{
char c;
- int configtestonly = 0;
+ int configtestonly = 0, showcompile = 0;
const char *confname = SERVER_CONFIG_FILE;
const char *def_server_root = HTTPD_ROOT;
const char *temp_error_log = NULL;
@@ -600,8 +599,14 @@
destroy_and_exit_process(process, 0);
case 'V':
- show_compile_settings();
- destroy_and_exit_process(process, 0);
+ if (strcmp(ap_show_mpm(), "")) { /* MPM built-in? */
+ show_compile_settings();
+ destroy_and_exit_process(process, 0);
+ }
+ else {
+ showcompile = 1;
+ }
+ break;
case 'l':
ap_show_modules();
@@ -682,6 +687,10 @@
ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, "Syntax OK");
destroy_and_exit_process(process, 0);
}
+ else if (showcompile) { /* deferred due to dynamically loaded MPM */
+ show_compile_settings();
+ destroy_and_exit_process(process, 0);
+ }
}
signal_server = APR_RETRIEVE_OPTIONAL_FN(ap_signal_server);