]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Close the child_exit_event which lives only for the scope
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 31 Dec 2007 05:42:10 +0000 (05:42 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 31 Dec 2007 05:42:10 +0000 (05:42 +0000)
of master_main and was orphaned on each soft or fatal restart.

PR: 40932
Submitted by: Jeff Robbins <jeffr livedata.com>

Backport: r607677

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

server/mpm/winnt/mpm_winnt.c

index cdb8b2ecefc591857fc221f39019bd3208799671..2c9dbbe89019d729e10e8e91b9e4e325a734b8a2 100644 (file)
@@ -990,9 +990,11 @@ die_now:
                 event_handles[CHILD_HANDLE] = NULL;
             }
         }
+        CloseHandle(child_exit_event);
         return 0;  /* Tell the caller we do not want to restart */
     }
     winnt_mpm_state = AP_MPMQ_STARTING;
+    CloseHandle(child_exit_event);
     return 1;      /* Tell the caller we want a restart */
 }