Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: base/sys_info_posix.cc

Issue 12513014: POSIX: surround statvfs calls with HANDLE_EINTR (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_posix.cc
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc
index f2119cd7fdb538ebc34699088387aa2381e8cc4e..854f123d469a236c8e1ed6a674b2318bc4e5fdfc 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;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698