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

Unified Diff: runtime/bin/file_system_watcher_android.cc

Issue 165723007: Move signal_blocker to platform and use it by default in TEMP_FAILURE_RETRY. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tiny fix. Created 6 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 | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_system_watcher_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_system_watcher_android.cc
diff --git a/runtime/bin/file_system_watcher_android.cc b/runtime/bin/file_system_watcher_android.cc
index 96fd325bd6f59ca8fb069bdcbf09fd9d33c52943..ac2ad5f0c9b674d9204e7d0040461f80be25e7c2 100644
--- a/runtime/bin/file_system_watcher_android.cc
+++ b/runtime/bin/file_system_watcher_android.cc
@@ -12,6 +12,8 @@
#include "bin/fdutils.h"
+#include "platform/signal_blocker.h"
+
namespace dart {
namespace bin {
@@ -22,7 +24,7 @@ bool FileSystemWatcher::IsSupported() {
intptr_t FileSystemWatcher::Init() {
- int id = TEMP_FAILURE_RETRY(inotify_init());
+ int id = NO_RETRY_EXPECTED(inotify_init());
if (id < 0 || !FDUtils::SetCloseOnExec(id)) {
return -1;
}
@@ -48,7 +50,7 @@ intptr_t FileSystemWatcher::WatchPath(intptr_t id,
if (events & kModifyContent) list_events |= IN_CLOSE_WRITE | IN_ATTRIB;
if (events & kDelete) list_events |= IN_DELETE;
if (events & kMove) list_events |= IN_MOVE;
- int path_id = TEMP_FAILURE_RETRY(inotify_add_watch(id, path, list_events));
+ int path_id = NO_RETRY_EXPECTED(inotify_add_watch(id, path, list_events));
if (path_id < 0) {
return -1;
}
@@ -57,7 +59,7 @@ intptr_t FileSystemWatcher::WatchPath(intptr_t id,
void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) {
- VOID_TEMP_FAILURE_RETRY(inotify_rm_watch(id, path_id));
+ VOID_NO_RETRY_EXPECTED(inotify_rm_watch(id, path_id));
}
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/file_system_watcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698