Skip to content

Commit

Permalink
reintroduce missing lseek() for header-less files
Browse files Browse the repository at this point in the history
  • Loading branch information
smorovic authored and fwyzard committed Sep 12, 2019
1 parent 411b633 commit 361bb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventFilter/Utilities/src/EvFDaqDirector.cc
Expand Up @@ -962,7 +962,6 @@ namespace evf {
close(infile);
infile = -1;
}
//else lseek(infile,0,SEEK_SET);

if (sz_read < 0) {
edm::LogError("EvFDaqDirector") << "parseFRDFileHeader - unable to read " << rawSourcePath << " : "
Expand All @@ -989,6 +988,7 @@ namespace evf {
return -1;
} else {
//no header, but valid file
lseek(infile, 0, SEEK_SET);
rawHeaderSize = 0;
lsFromHeader = 0;
eventsFromHeader = -1;
Expand Down

0 comments on commit 361bb72

Please sign in to comment.