]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Since NetWare doesn't have processes the entire issue of having to close
authorBradley Nicholes <bnicholes@apache.org>
Wed, 26 Feb 2003 17:38:44 +0000 (17:38 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Wed, 26 Feb 2003 17:38:44 +0000 (17:38 +0000)
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

src/main/alloc.c

index 19a4566df51cd51154b50c5f3f8050a4a6ba9827..da9bd748524426376d9ff088d70edd412159fd20 100644 (file)
@@ -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,