diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 23:03:27 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 23:03:27 +0000 |
commit | 0926012e76f40fa2f45e7a37bb4edf8d7b05783d (patch) | |
tree | 62581acd8ddc4f8ea5031fdd0c47ade4d9dc8986 /base | |
parent | ff83d3f27525da11d852d22db64533c8ec80d815 (diff) | |
download | chromium_src-0926012e76f40fa2f45e7a37bb4edf8d7b05783d.zip chromium_src-0926012e76f40fa2f45e7a37bb4edf8d7b05783d.tar.gz chromium_src-0926012e76f40fa2f45e7a37bb4edf8d7b05783d.tar.bz2 |
linux: provide a hint to people with misconfigured shm
BUG=24213
Review URL: http://codereview.chromium.org/539003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35838 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/shared_memory_posix.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/base/shared_memory_posix.cc b/base/shared_memory_posix.cc index 34e7b72..5fff095 100644 --- a/base/shared_memory_posix.cc +++ b/base/shared_memory_posix.cc @@ -188,8 +188,13 @@ bool SharedMemory::CreateOrOpen(const std::wstring &name, } if (fp == NULL) { - if (posix_flags & O_CREAT) + if (posix_flags & O_CREAT) { PLOG(ERROR) << "Creating shared memory in " << path.value() << " failed"; +#if !defined(OS_MACOSX) + LOG(ERROR) << "This is frequently caused by incorrect permissions on " + << "/dev/shm. Try 'sudo chmod 777 /dev/shm' to fix."; +#endif + } return false; } |