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

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

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@607677 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index a5a726337eb4fcfa638f0f19df33d29e89243425..e61d66fd987513ce70b4e89c7f4bd9b86b60b7bd 100644 (file)
@@ -928,9 +928,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 */
 }