Commit 4f35a997 authored by Kevin Howe's avatar Kevin Howe
Browse files

In close_and_update_job_output, closed out/err files before checking

size (flushes)
parent 2a4c7df7
......@@ -568,6 +568,9 @@ sub close_and_update_job_output
return unless($self->output_dir);
return unless($job->adaptor);
close STDOUT;
close STDERR;
if(-z $job->stdout_file) {
#print("unlink zero size ", $job->stdout_file, "\n");
unlink $job->stdout_file;
......@@ -581,8 +584,6 @@ sub close_and_update_job_output
$job->adaptor->store_out_files($job) if($job->adaptor);
close STDOUT;
close STDERR;
open STDOUT, ">&WORKER_STDOUT";
open STDERR, ">&WORKER_STDERR";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment