]> granicus.if.org Git - apache/commitdiff
Never close the handle, if it is the StdError psuedohandle.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 11 Feb 2002 20:32:04 +0000 (20:32 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 11 Feb 2002 20:32:04 +0000 (20:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93363 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index d08c7447a7abdc5886bbed803f24b9e043703807..38ef538f8803e9a92ddc98c227bd5339aeb5ac35 100644 (file)
@@ -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;
     }