summaryrefslogtreecommitdiffstats
path: root/chrome/browser/process_singleton.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 02:21:15 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-07 02:21:15 +0000
commit4dd4224c9701c98a912bfd84dfcd24be2ce47d38 (patch)
treed4883c36bedc8ebd656052a169ea82492b2fa7d5 /chrome/browser/process_singleton.h
parent240faaf618d2247aa7da87fab9360cac95c3ba38 (diff)
downloadchromium_src-4dd4224c9701c98a912bfd84dfcd24be2ce47d38.zip
chromium_src-4dd4224c9701c98a912bfd84dfcd24be2ce47d38.tar.gz
chromium_src-4dd4224c9701c98a912bfd84dfcd24be2ce47d38.tar.bz2
Linux: fix startup race between creating the SingletonLock and listening on SingletonSocket.
BUG=39922 TEST=see bug Review URL: http://codereview.chromium.org/1612006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/process_singleton.h')
-rw-r--r--chrome/browser/process_singleton.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/process_singleton.h b/chrome/browser/process_singleton.h
index d7fd0f5..4ae0b10 100644
--- a/chrome/browser/process_singleton.h
+++ b/chrome/browser/process_singleton.h
@@ -59,8 +59,10 @@ class ProcessSingleton : public NonThreadSafe {
int timeout_seconds);
#endif
- // Sets ourself up as the singleton instance.
- void Create();
+ // Sets ourself up as the singleton instance. Returns true on success. If
+ // false is returned, we are not the singleton instance and the caller must
+ // exit.
+ bool Create();
// Clear any lock state during shutdown.
void Cleanup();