From: William A. Rowe Jr Date: Mon, 11 Feb 2002 20:32:04 +0000 (+0000) Subject: Never close the handle, if it is the StdError psuedohandle. X-Git-Tag: 2.0.33~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc21a8347ccba84813c66436b9f4c17c9a787b0b;p=apache Never close the handle, if it is the StdError psuedohandle. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93363 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/mpm_winnt.c b/server/mpm/winnt/mpm_winnt.c index d08c7447a7..38ef538f88 100644 --- a/server/mpm/winnt/mpm_winnt.c +++ b/server/mpm/winnt/mpm_winnt.c @@ -1537,7 +1537,9 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_ CloseHandle(hPipeWrite); CloseHandle(hPipeRead); CloseHandle(hNullOutput); - CloseHandle(hShareError); + if (GetStdHandle(STD_ERROR_HANDLE) != hShareError) { + CloseHandle(hShareError); + } return -1; }