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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.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 | « base/sys_info_posix.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index 8479bb555a46d2863b2ad97caf96c48b20ab66ff..ac227b3d5fff5c1985537fedb08e8d4c609c4e10 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -292,7 +292,7 @@ void GetSizeStatsOnBlockingPool(const std::string& mount_path,
uint64_t remaining_size_in_bytes = 0;
struct statvfs stat = {}; // Zero-clear
- if (statvfs(mount_path.c_str(), &stat) == 0) {
+ if (HANDLE_EINTR(statvfs(mount_path.c_str(), &stat)) == 0) {
total_size_in_bytes =
static_cast<uint64_t>(stat.f_blocks) * stat.f_frsize;
remaining_size_in_bytes =
« no previous file with comments | « base/sys_info_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698