diff options
author | davidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 01:29:28 +0000 |
---|---|---|
committer | davidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-27 01:29:28 +0000 |
commit | 53f4826c9fe6bea1718a499dc686f26dbf24ab50 (patch) | |
tree | b2d1f444aa73e927ff215e7dc78e851bc213a056 /chrome/common | |
parent | 34d3608cd3c631811eef51bc5cdd8ce2a2670076 (diff) | |
download | chromium_src-53f4826c9fe6bea1718a499dc686f26dbf24ab50.zip chromium_src-53f4826c9fe6bea1718a499dc686f26dbf24ab50.tar.gz chromium_src-53f4826c9fe6bea1718a499dc686f26dbf24ab50.tar.bz2 |
Move the SingletonSocket to a temporary directory
This is to workaround problems on certain network filesystems (notably AFS)
which do not support Unix domain sockets. We move the sockets into a temporary
folder and symlink. To avoid the possibility of a dangling link to a missing
(and later intercepted) remote directory, we create and check cookie files
and rely on the stickiness of /tmp/ to avoid a race condition in the check.
R=mattm
BUG=44606
TEST=ProcessSingletonLinuxTest.*
Review URL: http://codereview.chromium.org/2838034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_constants.cc | 3 | ||||
-rw-r--r-- | chrome/common/chrome_constants.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc index 2cedf3d..2047798 100644 --- a/chrome/common/chrome_constants.cc +++ b/chrome/common/chrome_constants.cc @@ -90,8 +90,7 @@ const FilePath::CharType kHistoryFilename[] = FPL("History"); const FilePath::CharType kLocalStateFilename[] = FPL("Local State"); const FilePath::CharType kPreferencesFilename[] = FPL("Preferences"); const FilePath::CharType kSafeBrowsingFilename[] = FPL("Safe Browsing Bloom"); -// WARNING: SingletonSocket can't contain spaces, because otherwise -// chrome_process_util_linux would be broken. +const FilePath::CharType kSingletonCookieFilename[] = FPL("SingletonCookie"); const FilePath::CharType kSingletonSocketFilename[] = FPL("SingletonSocket"); const FilePath::CharType kSingletonLockFilename[] = FPL("SingletonLock"); const FilePath::CharType kThumbnailsFilename[] = FPL("Thumbnails"); diff --git a/chrome/common/chrome_constants.h b/chrome/common/chrome_constants.h index 9c70974..6510409b 100644 --- a/chrome/common/chrome_constants.h +++ b/chrome/common/chrome_constants.h @@ -51,6 +51,7 @@ extern const FilePath::CharType kHistoryFilename[]; extern const FilePath::CharType kLocalStateFilename[]; extern const FilePath::CharType kPreferencesFilename[]; extern const FilePath::CharType kSafeBrowsingFilename[]; +extern const FilePath::CharType kSingletonCookieFilename[]; extern const FilePath::CharType kSingletonSocketFilename[]; extern const FilePath::CharType kSingletonLockFilename[]; extern const FilePath::CharType kThumbnailsFilename[]; |