Update of /cvsroot/opengtoolkit/pipe/c_source
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26697/c_source
Modified Files:
pipes.c
Log Message:
Fixed Execute System Command to use default standard IO handles
Index: pipes.c
===================================================================
RCS file: /cvsroot/opengtoolkit/pipe/c_source/pipes.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** pipes.c 27 Oct 2006 20:57:50 -0000 1.19
--- pipes.c 13 Dec 2006 10:17:29 -0000 1.20
***************
*** 499,519 ****
/* Set up members of the STARTUPINFO structure. */
ZeroMemory( &siStartInfo, sizeof(STARTUPINFO) );
! siStartInfo.cb = sizeof(STARTUPINFO);
! siStartInfo.dwFlags = STARTF_USESTDHANDLES;
if (pid && *pid)
siStartInfo.dwFlags |= STARTF_USESHOWWINDOW;
siStartInfo.wShowWindow = SW_HIDE;
! if (stdIn)
! siStartInfo.hStdInput = stdIn;
! else
! siStartInfo.hStdInput = GetStdHandle(STD_INPUT_HANDLE);
! if (stdOut)
! siStartInfo.hStdOutput = stdOut;
! else
! siStartInfo.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
! if (stdErr)
! siStartInfo.hStdError = stdErr;
! else
! siStartInfo.hStdError = GetStdHandle(STD_ERROR_HANDLE);
/* Create the child process. */
--- 499,513 ----
/* Set up members of the STARTUPINFO structure. */
ZeroMemory( &siStartInfo, sizeof(STARTUPINFO) );
! siStartInfo.cb = sizeof(STARTUPINFO);
! if (stdIn || stdOut || stdErr)
! siStartInfo.dwFlags = STARTF_USESTDHANDLES;
!
if (pid && *pid)
siStartInfo.dwFlags |= STARTF_USESHOWWINDOW;
siStartInfo.wShowWindow = SW_HIDE;
!
! siStartInfo.hStdInput = stdIn;
! siStartInfo.hStdOutput = stdOut;
! siStartInfo.hStdError = stdErr;
/* Create the child process. */
|