manoj 99/02/07 22:47:43
Modified: pthreads/src/main http_main.c Log: Put back -t and -S functionality (config test and virtual host config dump) Revision Changes Path 1.10 +9 -1 apache-apr/pthreads/src/main/http_main.c Index: http_main.c =================================================================== RCS file: /home/cvs/apache-apr/pthreads/src/main/http_main.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -u -r1.9 -r1.10 --- http_main.c 1999/02/07 06:29:30 1.9 +++ http_main.c 1999/02/08 06:47:42 1.10 @@ -2144,7 +2144,7 @@ { int c; int rc; /* ZZZZ */ - int configtestonly; + int configtestonly = 0; char *s; MONCONTROL(0); @@ -2239,6 +2239,14 @@ ap_suexec_enabled = init_suexec(); server_conf = ap_read_config(pconf, ptemp, ap_server_confname); + + if (configtestonly) { + fprintf(stderr, "Syntax OK\n"); + exit(0); + } + if (ap_dump_settings) { + exit(0); + } if (!ap_standalone) { fprintf(stderr, "inetd mode not supported\n");