summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_channel_posix.cc
diff options
context:
space:
mode:
authordmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 14:14:05 +0000
committerdmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-25 14:14:05 +0000
commit3c52425b21e996264a0302e45fc75e623a029e12 (patch)
tree64158d2d9c2c8a90fac36c2088ba0de76a14a735 /ipc/ipc_channel_posix.cc
parent130ee907aaf46c2161d956725cbd23c26bad4895 (diff)
downloadchromium_src-3c52425b21e996264a0302e45fc75e623a029e12.zip
chromium_src-3c52425b21e996264a0302e45fc75e623a029e12.tar.gz
chromium_src-3c52425b21e996264a0302e45fc75e623a029e12.tar.bz2
There are times on the Mac when pipe names of 0 length may occur. Let the caller handle
the error instead of aborting here. BUG=75518 TEST=BUILD Review URL: http://codereview.chromium.org/7743001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc/ipc_channel_posix.cc')
-rw-r--r--ipc/ipc_channel_posix.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index fe60691..8cda88b 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -144,10 +144,9 @@ COMPILE_ASSERT(sizeof(((sockaddr_un*)0)->sun_path) >= kMaxPipeNameLength,
bool CreateServerUnixDomainSocket(const std::string& pipe_name,
int* server_listen_fd) {
DCHECK(server_listen_fd);
- DCHECK_GT(pipe_name.length(), 0u);
- DCHECK_LT(pipe_name.length(), kMaxPipeNameLength);
if (pipe_name.length() == 0 || pipe_name.length() >= kMaxPipeNameLength) {
+ DLOG(ERROR) << "pipe_name.length() == " << pipe_name.length();
return false;
}
@@ -315,7 +314,6 @@ Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle,
if (!CreatePipe(channel_handle)) {
// The pipe may have been closed already.
const char *modestr = (mode_ & MODE_SERVER_FLAG) ? "server" : "client";
- // The pipe may have been closed already.
LOG(WARNING) << "Unable to create pipe named \"" << channel_handle.name
<< "\" in " << modestr << " mode";
}