diff options
author | abeera@google.com <abeera@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-24 18:57:24 +0000 |
---|---|---|
committer | abeera@google.com <abeera@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-24 18:57:24 +0000 |
commit | 84818e9ec2de7346183fd46d8ff56b57d2902bda (patch) | |
tree | 0f3c09e97d4b75351cb4a0d543a11f9438e48484 /ipc | |
parent | 5442ecb6ca42b4873a4f089f9a18e81d7ab3dcd1 (diff) | |
download | chromium_src-84818e9ec2de7346183fd46d8ff56b57d2902bda.zip chromium_src-84818e9ec2de7346183fd46d8ff56b57d2902bda.tar.gz chromium_src-84818e9ec2de7346183fd46d8ff56b57d2902bda.tar.bz2 |
Fix to bug 75303
Makes the sun_path an absolute path("/tmp/pipe_name") to allow IPC between processes with different working directories
BUG=75303 TEST=NONE
Review URL: http://codereview.chromium.org/7167017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_channel_handle.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipc/ipc_channel_handle.h b/ipc/ipc_channel_handle.h index 1b9a385..ba034cc 100644 --- a/ipc/ipc_channel_handle.h +++ b/ipc/ipc_channel_handle.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -30,6 +30,9 @@ struct ChannelHandle { // Note that serialization for this object is defined in the ParamTraits // template specialization in ipc_message_utils.h. ChannelHandle() {} + // The name that is passed in should be an absolute path for Posix. + // Otherwise there may be a problem in IPC communication between + // processes with different working directories. ChannelHandle(const std::string& n) : name(n) {} ChannelHandle(const char* n) : name(n) {} #if defined(OS_POSIX) |