Skip to content
Snippets Groups Projects
Commit 1e5567bd authored by tewk's avatar tewk
Browse files

Big kevin bug,

I was closing the wrong fds
parent 9753b90d
No related branches found
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ int setup_child_pipes ( int * pipes )
error ("dup failed on child standard in pipe, %m errno %i" , local_errno );
//return error_code ;
}
close ( CHILD_IN_RD );
close ( CHILD_IN_WR );
close ( pipes[CHILD_IN_RD] );
close ( pipes[CHILD_IN_WR] );
/*dup stdout*/
//close ( STDOUT_FILENO );
......@@ -55,8 +55,8 @@ int setup_child_pipes ( int * pipes )
error ("dup failed on child standard out pipe, %m errno %i" , local_errno );
//return error_code ;
}
close ( CHILD_OUT_RD );
close ( CHILD_OUT_WR );
close ( pipes[CHILD_OUT_RD] );
close ( pipes[CHILD_OUT_WR] );
/*dup stderr*/
//close ( STDERR_FILENO );
......@@ -66,7 +66,7 @@ int setup_child_pipes ( int * pipes )
error ("dup failed on child standard err pipe, %m errno %i" , local_errno );
//return error_code ;
}
close ( CHILD_ERR_RD );
close ( CHILD_ERR_WR );
close ( pipes[CHILD_ERR_RD] );
close ( pipes[CHILD_ERR_WR] );
return error_code ;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment