File::get -> File::descriptor.

This commit is contained in:
Victor Zverovich
2014-05-03 15:07:28 -07:00
parent c6d83b1a3b
commit ee793b35cf
3 changed files with 30 additions and 32 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ File::File(const char *path, int oflag) {
fmt::ThrowSystemError(errno, "cannot open file {}") << path;
}
File::~File() {
File::~File() FMT_NOEXCEPT(true) {
// Don't need to retry close in case of EINTR.
// See http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-09/3000.html
if (fd_ != -1 && ::FMT_POSIX(close(fd_)) != 0)