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

Unified Diff: tools/android/common/daemon.cc

Issue 100253002: Don't HANDLE_EINTR(close). Either IGNORE_EINTR(close) or just close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | « tools/android/common/adb_connection.cc ('k') | tools/android/forwarder/forwarder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/common/daemon.cc
diff --git a/tools/android/common/daemon.cc b/tools/android/common/daemon.cc
index 9eafdbce0520a0f346016f4640aa78f8a33b0624..699c615676fd37336e92976e0082b940ed65a10b 100644
--- a/tools/android/common/daemon.cc
+++ b/tools/android/common/daemon.cc
@@ -4,6 +4,7 @@
#include "tools/android/common/daemon.h"
+#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <sys/types.h>
@@ -11,7 +12,6 @@
#include "base/command_line.h"
#include "base/logging.h"
-#include "base/posix/eintr_wrapper.h"
namespace {
@@ -25,7 +25,7 @@ void Exit(int unused) {
void CloseFileDescriptor(int fd) {
int old_errno = errno;
- (void) HANDLE_EINTR(close(fd));
+ close(fd);
errno = old_errno;
}
« no previous file with comments | « tools/android/common/adb_connection.cc ('k') | tools/android/forwarder/forwarder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698