From f557c2789239ae3c6334d8f60748a357cb9a20ac Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 17 Dec 2007 18:58:06 +0000 Subject: I think it doesn't open or connect stderr in this version, I need to add some options... --- src/process.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/process.cpp') diff --git a/src/process.cpp b/src/process.cpp index 719996b..0724159 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -48,14 +48,14 @@ void Bu::Process::gexec( const char *sName, char *const argv[] ) { int iaStdIn[2]; int iaStdOut[2]; - int iaStdErr[2]; +// int iaStdErr[2]; pipe( iaStdIn ); pipe( iaStdOut ); - pipe( iaStdErr ); +// pipe( iaStdErr ); iStdIn = iaStdIn[1]; iStdOut = iaStdOut[0]; - iStdErr = iaStdErr[0]; +// iStdErr = iaStdErr[0]; // fcntl( iStdOut, F_SETFL, fcntl( iStdOut, F_GETFL, 0 )|O_NONBLOCK ); @@ -64,15 +64,15 @@ void Bu::Process::gexec( const char *sName, char *const argv[] ) { ::close( iaStdIn[1] ); ::close( iaStdOut[0] ); - ::close( iaStdErr[0] ); +// ::close( iaStdErr[0] ); dup2( iaStdIn[0], 0 ); dup2( iaStdOut[1], 1 ); - dup2( iaStdErr[1], 2 ); +// dup2( iaStdErr[1], 2 ); execvp( sName, argv ); } ::close( iaStdIn[0] ); ::close( iaStdOut[1] ); - ::close( iaStdErr[1] ); +// ::close( iaStdErr[1] ); } void Bu::Process::close() -- cgit v1.2.3