diff options
-rw-r--r-- | chrome/browser/process_singleton_linux.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/process_singleton_linux.cc b/chrome/browser/process_singleton_linux.cc index 80149d1..eebbd39 100644 --- a/chrome/browser/process_singleton_linux.cc +++ b/chrome/browser/process_singleton_linux.cc @@ -397,8 +397,15 @@ void ProcessSingleton::Create() { if (unlink(socket_path_.value().c_str()) < 0) DCHECK_EQ(errno, ENOENT); - if (bind(sock, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) < 0) + if (bind(sock, reinterpret_cast<sockaddr*>(&addr), sizeof(addr)) < 0) { LOG(ERROR) << "bind() failed: " << strerror(errno); + LOG(ERROR) << "SingletonSocket failed to create a socket in your home " + "directory. This means that running multiple instances of " + "the Chrome binary will start multiple browser process " + "rather than opening a new window in the existing process."; + close(sock); + return; + } if (listen(sock, 5) < 0) NOTREACHED() << "listen failed: " << strerror(errno); |