apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Saccoccio" <r...@fastcgi.com>
Subject [PATCH] apr/threadproc/win32/proc.c:apr_proc_create()
Date Thu, 18 Jul 2002 04:46:54 GMT

The HANDLE members in the STARTUPINFO struct used in the call to
CreateProcess() aren't currently initialized properly...

--rob


diff -u -r1.80 proc.c
--- proc.c	5 Jul 2002 17:58:10 -0000	1.80
+++ proc.c	18 Jul 2002 04:31:54 -0000
@@ -590,6 +590,10 @@

         memset(&si, 0, sizeof(si));
         si.cb = sizeof(si);
+        si.hStdInput = INVALID_HANDLE_VALUE;
+        si.hStdOutput = INVALID_HANDLE_VALUE;
+        si.hStdError = INVALID_HANDLE_VALUE;
+
         if (attr->detached) {
             si.dwFlags |= STARTF_USESHOWWINDOW;
             si.wShowWindow = SW_HIDE;


Mime
View raw message