From: William A. Rowe Jr Date: Mon, 31 Dec 2007 05:41:05 +0000 (+0000) Subject: Close the child_exit_event which lives only for the scope X-Git-Tag: 2.2.7~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05e8ca255596344449bb405632cd6cbd7c65b5ed;p=thirdparty%2Fapache%2Fhttpd.git Close the child_exit_event which lives only for the scope of master_main and was orphaned on each soft or fatal restart. PR: 40932 Submitted by: Jeff Robbins Backport: r607677 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@607678 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index aaf03f4fa98..f3174706ded 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -992,9 +992,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 */ }