]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
csd and dupped_csd are sockets, so they ought to handled in ap_note_cleanups_for_sock...
authorMartin Kraemer <martin@apache.org>
Fri, 25 Oct 2002 21:12:23 +0000 (21:12 +0000)
committerMartin Kraemer <martin@apache.org>
Fri, 25 Oct 2002 21:12:23 +0000 (21:12 +0000)
(Not noticed before because ap_note_cleanups_for_socket() and ap_note_cleanups_for_fd() simply close the fd,
except for OSs where closesocket() in different from close())

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97306 13f79535-47bb-0310-9956-ffa450edef68

src/main/http_main.c

index 6bd8dce1c20d2007a193456ee472768d4e548312..34e7d6d7396f2e196a282f6df4d585bf3b41f1e4 100644 (file)
@@ -4517,7 +4517,7 @@ static void child_main(int child_num_arg)
         */
        signal(SIGUSR1, SIG_IGN);
 
-       ap_note_cleanups_for_fd(ptrans, csd);
+       ap_note_cleanups_for_socket(ptrans, csd);
 
        /* protect various fd_sets */
 #ifdef CHECK_FD_SETSIZE
@@ -4565,7 +4565,7 @@ static void child_main(int child_num_arg)
                        "dup: couldn't duplicate csd");
            dupped_csd = csd;   /* Oh well... */
        }
-       ap_note_cleanups_for_fd(ptrans, dupped_csd);
+       ap_note_cleanups_for_socket(ptrans, dupped_csd);
 
        /* protect various fd_sets */
 #ifdef CHECK_FD_SETSIZE