From: Bradley Nicholes Date: Tue, 3 Sep 2002 22:00:36 +0000 (+0000) Subject: Avoid calling the real exit() function when the macro exit() is called outside of X-Git-Tag: AGB_BEFORE_AAA_CHANGES~79 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0071d5f8eda0a5d8b4c6b5e1e74ed4d7aa298302;p=thirdparty%2Fapache%2Fhttpd.git Avoid calling the real exit() function when the macro exit() is called outside of a code block. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96627 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/os/netware/os.h b/os/netware/os.h index b40d9c9833f..beec1b6cc46 100644 --- a/os/netware/os.h +++ b/os/netware/os.h @@ -73,6 +73,6 @@ 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); +#define exit(s) {if(s||hold_screen_on_exit){pressanykey();}apr_terminate();exit(s);} #endif /* ! APACHE_OS_H */