From cc21a8347ccba84813c66436b9f4c17c9a787b0b Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 11 Feb 2002 20:32:04 +0000 Subject: [PATCH] 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 --- server/mpm/winnt/mpm_winnt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.40.0