Skip to content
Snippets Groups Projects
Commit c17a027a authored by Radovan Červený's avatar Radovan Červený
Browse files

fixed not closing some fds

parent d7f527a4
No related branches found
No related tags found
1 merge request!15BP_cervera3 - automatic measurements, processing
......@@ -191,6 +191,10 @@ MPRPipelineResults MeasurementProvisioner::runPipeline ( const MPPipeline & pipe
dup ( curStdoutFd );
dup ( curStderrFd );
 
close ( curStdinFd );
close ( curStdoutFd );
close ( curStderrFd );
return pipelineResults;
}
 
......
......@@ -43,6 +43,7 @@ std::string MPUtils::generateTmpfileFromCommand ( const std::string & command )
close ( 1 );
close ( tempfd );
dup ( stdoutfd );
close ( stdoutfd );
 
if ( WEXITSTATUS ( status ) != 0 ) {
unlink ( temppath );
......
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