diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/sys_info_posix.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc index f2119cd..854f123 100644 --- a/base/sys_info_posix.cc +++ b/base/sys_info_posix.cc @@ -44,9 +44,8 @@ int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { base::ThreadRestrictions::AssertIOAllowed(); struct statvfs stats; - if (statvfs(path.value().c_str(), &stats) != 0) { + if (HANDLE_EINTR(statvfs(path.value().c_str(), &stats)) != 0) return -1; - } return static_cast<int64>(stats.f_bavail) * stats.f_frsize; } |