Add more error handling for close() calls.

This commit is contained in:
Jon Siwek 2012-07-26 12:40:12 -05:00
parent d872b1d9f6
commit 734e5f68d3
7 changed files with 47 additions and 19 deletions

View file

@ -86,7 +86,7 @@ void Ascii::CloseFile(double t)
WriteHeaderField("end", ts);
}
close(fd);
safe_close(fd);
fd = 0;
}