Skip to content
Snippets Groups Projects
Commit 305ce67a authored by tewk's avatar tewk
Browse files

Fixed setup_child_pipes error

parent b9533eca
No related branches found
No related tags found
No related merge requests found
......@@ -55,5 +55,18 @@ 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 );
/*dup stderr*/
//close ( STDERR_FILENO );
if ( SLURM_ERROR == ( error_code |= dup2 ( pipes[CHILD_ERR_WR] , STDERR_FILENO ) ) )
{
local_errno = errno ;
error ("dup failed on child standard err pipe, %m errno %i" , local_errno );
//return error_code ;
}
close ( CHILD_ERR_RD );
close ( 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