Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Issue 174041: Make ProcessSingletonLinux check the hostname to avoid multiple uses of a profile over NFS. (Closed)

Created:
11 years, 4 months ago by mattm
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Make ProcessSingletonLinux check the hostname to avoid multiple uses of a profile over NFS. In order to avoid the singleton socket filename from exceeding the max socket name length, the socket is just named "SingletonSocket" and a new file "SingletonLock" is used for the hostname&pid. BUG=17549 TEST=see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23930

Patch Set 1 #

Total comments: 4

Patch Set 2 : review fixes #

Patch Set 3 : Save and restore command line, remove sleeps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -110 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/browser_main.cc View 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/process_singleton.h View 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/process_singleton_linux.cc View 1 13 chunks +141 lines, -73 lines 0 comments Download
M chrome/browser/process_singleton_linux_uitest.cc View 1 2 6 chunks +67 lines, -21 lines 0 comments Download
M chrome/browser/process_singleton_mac.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/process_singleton_win.cc View 5 chunks +12 lines, -9 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/result_codes.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
mattm
11 years, 4 months ago (2009-08-19 01:37:05 UTC) #1
willchan no longer on Chromium
LGTM. You might want to try running in valgrind using chrome_tests.sh or whatever the build ...
11 years, 4 months ago (2009-08-19 18:12:24 UTC) #2
mattm
It seems to fail for me under valgrind even with the trunk version :( There ...
11 years, 4 months ago (2009-08-19 20:53:27 UTC) #3
mattm
11 years, 4 months ago (2009-08-20 20:54:10 UTC) #4
Turns out resetting the command line was wiping out the extended
--ui-test-timeout that the valgrind tests were setting, causing the tests to
timeout.

This also replaces the sleep calls in the test, though that wasn't actually the
problem.

On 2009/08/19 20:53:27, mattm wrote:
> It seems to fail for me under valgrind even with the trunk version :(
> 
> There appears to be some sort of inter-test interaction, if I run each test
> alone they work.  Gonna have to dig into it some more.
> 
> On 2009/08/19 18:12:24, willchan wrote:
> > LGTM.  You might want to try running in valgrind using chrome_tests.sh or
> > whatever the build bots use, because suzhe was running into valgrind issues
> when
> > he made his last change here.  Thanks for the fix.
> > 
> > http://codereview.chromium.org/174041/diff/1/5
> > File chrome/browser/process_singleton_linux.cc (right):
> > 
> > http://codereview.chromium.org/174041/diff/1/5#newcode12
> > Line 12: // The destination is a string containing the hostname and process
id
> > of chrome's
> > Exceeds 80 columns
> > 
> > http://codereview.chromium.org/174041/diff/1/5#newcode42
> > Line 42: #include <cstdio>
> > We don't use stdio, we use LOG.
> > 
> > http://codereview.chromium.org/174041/diff/1/5#newcode223
> > Line 223: // Unlink a socket path. If the path is a symbol link, then the
> symbol
> > link
> > You should update this comment, since it's not strictly a socket path now. 
> > Also, s/symbol/symbolic/ while you're there.
> > 
> > http://codereview.chromium.org/174041/diff/1/5#newcode235
> > Line 235: std::string* hostname,
> > indentation is off

Powered by Google App Engine
This is Rietveld 408576698