passed to a CloseHandle call.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93361
13f79535-47bb-0310-9956-
ffa450edef68
CloseHandle(pi.hThread);
CloseHandle(hPipeRead);
CloseHandle(hNullOutput);
- CloseHandle(hShareError);
+ if (GetStdHandle(STD_ERROR_HANDLE) != hShareError) {
+ /* Handles opened with GetStdHandle are psuedo handles
+ * and should not be closed else bad things will happen.
+ */
+ CloseHandle(hShareError);
+ }
_putenv("AP_PARENT_PID=");
_putenv("AP_MY_GENERATION=");