]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Drop a redundant destructor.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 31 Jul 2002 06:13:18 +0000 (06:13 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 31 Jul 2002 06:13:18 +0000 (06:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96255 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index 2f7d3309a589d2a337a71877f033eabc19338dec..9e3e4e3b9a2f0db50cb3949f946c3f137d532a3a 100644 (file)
@@ -779,6 +779,7 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_
      */
     waitlist[waitlist_term] = new_child.hproc;
     rv = WaitForMultipleObjects(2, waitlist, FALSE, INFINITE);
+    CloseHandle(waitlist[waitlist_ready]);
     if (rv != WAIT_OBJECT_0) {
         /* 
          * Outch... that isn't a ready signal. It's dead, Jim!
@@ -786,11 +787,9 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_
         SetEvent(hExitEvent);
         apr_pool_destroy(ptemp);
         CloseHandle(hExitEvent);
-        CloseHandle(waitlist[waitlist_ready]);
         CloseHandle(new_child.hproc);
         return -1;
     }
-    CloseHandle(waitlist[waitlist_ready]);
 
     if (send_listeners_to_child(ptemp, new_child.pid, new_child.in)) {
         /*