From: Bradley Nicholes Date: Wed, 26 Feb 2003 17:38:44 +0000 (+0000) Subject: Since NetWare doesn't have processes the entire issue of having to close X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f538ed496608d667d933f0fe9e5f40995fe3770a;p=thirdparty%2Fapache%2Fhttpd.git Since NetWare doesn't have processes the entire issue of having to close handles before an exec is non-existent. So just bypass the close on exec magic cleanup stuff. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@98800 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/alloc.c b/src/main/alloc.c index 19a4566df51..da9bd748524 100644 --- a/src/main/alloc.c +++ b/src/main/alloc.c @@ -1763,9 +1763,9 @@ static void cleanup_pool_for_exec(pool *p) API_EXPORT(void) ap_cleanup_for_exec(void) { -#if !defined(WIN32) && !defined(OS2) +#if !defined(WIN32) && !defined(OS2) && !defined(NETWARE) /* - * Don't need to do anything on NT or OS/2, because I + * Don't need to do anything on NT, NETWARE or OS/2, because I * am actually going to spawn the new process - not * exec it. All handles that are not inheritable, will * be automajically closed. The only problem is with @@ -2103,7 +2103,7 @@ static int socket_magic_cleanup(void *fpv) API_EXPORT(void) ap_note_cleanups_for_socket_ex(pool *p, int fd, int domagic) { -#ifdef TPF +#if defined(TPF) || defined(NETWARE) domagic = 0; /* skip magic (fcntl) for TPF sockets, at least for now */ #endif ap_register_cleanup_ex(p, (void *) (long) fd, socket_cleanup,