summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2002-11-13 21:14:02 +0000
committerBradley Nicholes <bnicholes@apache.org>2002-11-13 21:14:02 +0000
commita3fc322d821e06d93f1cfe88908eac12a106f8eb (patch)
tree6332f39ff8069d3b1b7178dba88aa06ae752872f /os
parent9850da24aa09173f5183678695d1e910f2a96bcc (diff)
downloadhttpd-a3fc322d821e06d93f1cfe88908eac12a106f8eb.tar.gz
Don't hold the Apache screen open when it exits with an error if all of the error
messages are going to a file anyway. In other words, don't hold the screen open if the -E <filename> command line parameter is used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97507 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os')
-rw-r--r--os/netware/os.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/os/netware/os.h b/os/netware/os.h
index beec1b6cc4..c60c239269 100644
--- a/os/netware/os.h
+++ b/os/netware/os.h
@@ -65,7 +65,7 @@
#include <screen.h>
-extern int hold_screen_on_exit; /* Indicates whether the screen should be held open on exit*/
+AP_DECLARE_DATA extern int hold_screen_on_exit; /* Indicates whether the screen should be held open on exit*/
#define CASE_BLIND_FILESYSTEM
#define NO_WRITEV
@@ -73,6 +73,10 @@ extern int hold_screen_on_exit; /* Indicates whether the screen should be held o
#define APACHE_MPM_DIR "server/mpm/netware" /* generated on unix */
#define getpid NXThreadGetId
-#define exit(s) {if(s||hold_screen_on_exit){pressanykey();}apr_terminate();exit(s);}
+
+/* Hold the screen open if there is an exit code and the hold_screen_on_exit flag >= 0 or the
+ hold_screen_on_exit > 0. If the hold_screen_on_exit flag is < 0 then close the screen no
+ matter what the exit code is. */
+#define exit(s) {if((s||hold_screen_on_exit)&&(hold_screen_on_exit>=0)){pressanykey();}apr_terminate();exit(s);}
#endif /* ! APACHE_OS_H */