From 95f57ab86714a98a5d4d531cdcc887de0affc574 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Tue, 3 Sep 2002 22:00:36 +0000 Subject: [PATCH] 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 --- os/netware/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3