Index: runtime/bin/file_system_watcher_linux.cc |
diff --git a/runtime/bin/file_system_watcher_linux.cc b/runtime/bin/file_system_watcher_linux.cc |
index 8706702a5166d6600379e7d6edfb68c96db3702d..2a5fee547c062276d7d36b5415d2b7c24a72a0f7 100644 |
--- a/runtime/bin/file_system_watcher_linux.cc |
+++ b/runtime/bin/file_system_watcher_linux.cc |
@@ -11,6 +11,7 @@ |
#include <sys/inotify.h> // NOLINT |
#include "bin/fdutils.h" |
+#include "bin/socket.h" |
namespace dart { |
@@ -70,7 +71,7 @@ Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) { |
const intptr_t kEventSize = sizeof(struct inotify_event); |
const intptr_t kBufferSize = kEventSize + NAME_MAX + 1; |
uint8_t buffer[kBufferSize]; |
- intptr_t bytes = TEMP_FAILURE_RETRY(read(id, buffer, kBufferSize)); |
+ intptr_t bytes = Socket::Read(id, buffer, kBufferSize); |
if (bytes < 0) { |
return DartUtils::NewDartOSError(); |
} |