summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 01:48:21 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 01:48:21 +0000
commit7bf54f5ec74d9d3b3498c02b83da572a78fc1df6 (patch)
tree5728e48224a79ec6a5cd5c318a9d3abe2aaab8a9 /ipc
parent24ee98d6741eaee6009ade4f4fe4956f19e191a6 (diff)
downloadchromium_src-7bf54f5ec74d9d3b3498c02b83da572a78fc1df6.zip
chromium_src-7bf54f5ec74d9d3b3498c02b83da572a78fc1df6.tar.gz
chromium_src-7bf54f5ec74d9d3b3498c02b83da572a78fc1df6.tar.bz2
linux: cut down on EPIPE error spew
Review URL: http://codereview.chromium.org/315019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29859 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_channel_posix.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index d6fa473..5800f92 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;
}