Commit e2c43ea1 authored by Philip Carns's avatar Philip Carns

move command pipe closure to earlier in darshan-job-summary script so that

we detect darshan-parser failures before processing any log lines


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@495 3b7491f3-a168-0410-bf4b-c445ed680a29
parent ac5bd7bf
...@@ -277,6 +277,8 @@ while ($line = <TRACE>) { ...@@ -277,6 +277,8 @@ while ($line = <TRACE>) {
} }
} }
close(TRACE) || die "darshan-parser failure: $! $?";
# #
# Exit out if there are no actual file accesses # Exit out if there are no actual file accesses
# #
...@@ -291,14 +293,12 @@ if ($first_data_line) ...@@ -291,14 +293,12 @@ if ($first_data_line)
print " runtime:$runtime (seconds)\n"; print " runtime:$runtime (seconds)\n";
print " nprocs:$nprocs\n"; print " nprocs:$nprocs\n";
print " version: $version\n"; print " version: $version\n";
close(TRACE);
exit(1); exit(1);
} }
# process last file record # process last file record
$file_record_hash{CP_NAME_SUFFIX} = $fields[4]; $file_record_hash{CP_NAME_SUFFIX} = $fields[4];
process_file_record($current_rank, $current_hash, \%file_record_hash); process_file_record($current_rank, $current_hash, \%file_record_hash);
close(TRACE) || die "darshan-parser failure: $! $?";
# Fudge one point at the end to make xrange match in read and write plots. # Fudge one point at the end to make xrange match in read and write plots.
# For some reason I can't get the xrange command to work. -Phil # For some reason I can't get the xrange command to work. -Phil
......
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