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

Unified Diff: ipc/ipc_channel_posix.cc

Issue 315019: linux: cut down on EPIPE error spew (Closed)
Patch Set: Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_channel_posix.cc
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index d6fa4735f721f09c4092e22c79d602f32f52be66..5800f928d145ee34931c477fde71cf296e4e3dd3 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -447,7 +447,7 @@ bool Channel::ChannelImpl::ProcessIncomingMessages() {
// to the console.
return false;
#endif // defined(OS_MACOSX)
- } else if (errno == ECONNRESET) {
+ } else if (errno == ECONNRESET || errno == EPIPE) {
return false;
} else {
PLOG(ERROR) << "pipe error (" << pipe_ << ")";
@@ -812,6 +812,10 @@ bool Channel::ChannelImpl::ProcessOutgoingMessages() {
return false;
}
#endif // OS_MACOSX
+ if (errno == EPIPE) {
+ Close();
+ return false;
+ }
PLOG(ERROR) << "pipe error on " << fd_written;
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698