]> granicus.if.org Git - apache/commitdiff
Force the screen to close on exit() if the -E option was specified on the
authorBradley Nicholes <bnicholes@apache.org>
Mon, 25 Nov 2002 17:46:26 +0000 (17:46 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Mon, 25 Nov 2002 17:46:26 +0000 (17:46 +0000)
command line

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97647 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/netware/mpm_netware.c

index 6bfff25532013a9102f9b3f5b532b0840335f7cc..658c4af1b9df0d73ae6eb53cbf95dd9fa148cafa 100644 (file)
@@ -912,8 +912,12 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
 
     startup_workers(ap_threads_to_start);
 
-     /* Allow the Apache screen to be closed normally on exit()*/
-    hold_screen_on_exit = 0;
+     /* Allow the Apache screen to be closed normally on exit() only if it
+        has not been explicitly forced to close on exit(). (ie. the -E flag
+        was specified at startup) */
+    if (hold_screen_on_exit > 0) {
+        hold_screen_on_exit = 0;
+    }
 
     ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf,
                "%s configured -- resuming normal operations",