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

Unified Diff: chromeos/dbus/debug_daemon_client.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: 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
Index: chromeos/dbus/debug_daemon_client.cc
diff --git a/chromeos/dbus/debug_daemon_client.cc b/chromeos/dbus/debug_daemon_client.cc
index c9b760fafd90d5465dd6b4ce51833170c3c7390f..c315fb7fdc8cc03e54728ae692f76f720122fbb4 100644
--- a/chromeos/dbus/debug_daemon_client.cc
+++ b/chromeos/dbus/debug_daemon_client.cc
@@ -52,7 +52,7 @@ class PipeReader {
virtual ~PipeReader() {
// Don't close pipe_fd_[0] as it's closed by data_stream_.
if (pipe_fd_[1] != -1)
- if (HANDLE_EINTR(close(pipe_fd_[1])) < 0)
+ if (IGNORE_EINTR(close(pipe_fd_[1])) < 0)
PLOG(ERROR) << "close[1]";
}
@@ -62,7 +62,7 @@ class PipeReader {
// Closes writeable descriptor; normally used in parent process after fork.
void CloseWriteFD() {
if (pipe_fd_[1] != -1) {
- if (HANDLE_EINTR(close(pipe_fd_[1])) < 0)
+ if (IGNORE_EINTR(close(pipe_fd_[1])) < 0)
PLOG(ERROR) << "close";
pipe_fd_[1] = -1;
}

Powered by Google App Engine
This is Rietveld 408576698