From: William A. Rowe Jr Date: Thu, 14 Mar 2002 04:08:51 +0000 (+0000) Subject: The be-certain-we-own-the-socket patch to listen.c fails if we hang X-Git-Tag: CHANGES~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa3ba046f1b6371edc4facbf2e5f8b10c5a5c153;p=thirdparty%2Fapache%2Fhttpd.git The be-certain-we-own-the-socket patch to listen.c fails if we hang on to the originals after duplicating sockets. If you dup, you aught to be closing the source. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93925 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index 4d46b215db6..17c69cfd572 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -503,6 +503,7 @@ static int set_listeners_noninheritable(apr_pool_t *p) "set_listeners_noninheritable: DuplicateHandle failed."); } else { + closesocket(nsd); nsd = (SOCKET) dup; apr_os_sock_put(&lr->sd, &nsd, p); }