Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(704)

Issue 160436: It's a copy of http://codereview.chromium.org/155772, with the fix for valgri... (Closed)

Created:
11 years, 4 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

It's a copy of http://codereview.chromium.org/155772, with the fix for valgrind test failure. This CL implements the second TODO item of issue 12343: 2) We should send back an ACK to the second process. If the second process doesn't get an ACK in the given timeout, it should kill the first process and go ahead and start. The approach of this CL is to append process id to the singleton's socket filename, such as "SingletonSocket-12345", and creates a symbol link "SingletonSocket" to the real socket file. In ProcessSingleton::NotifyOtherProcess() if it's successfully connected to "SingletonSocket" but no ACK received, then the original process can be killed by its process id retrieved from the symbol link. BUG=12343 ProcessSingleton Linux cleanups TEST=In one terminal, launch chrome and stop the process by pressing ctrl-z, then launch chrome again in another terminal. The second chrome shall be started in 5 seconds, and the first one shall be killed.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -96 lines) Patch
M chrome/browser/process_singleton.h View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/process_singleton_linux.cc View 1 2 3 4 18 chunks +330 lines, -90 lines 0 comments Download
A chrome/browser/process_singleton_linux_uitest.cc View 1 2 3 4 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/browser/process_singleton_win.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
James Su
Hi, I just uploaded this CL again with my chromium account. The valgrind issue was ...
11 years, 4 months ago (2009-07-31 03:16:32 UTC) #1
willchan no longer on Chromium
You should use the changes from http://codereview.chromium.org/159577 instead of 155772, because I made a few ...
11 years, 4 months ago (2009-07-31 04:15:36 UTC) #2
James Su
Sorry for my fault. I'll update this CL asap. On 2009/07/31 04:15:36, willchan wrote: > ...
11 years, 4 months ago (2009-07-31 04:39:08 UTC) #3
James Su
new CL uploaded. I did gcl try before uploading the new CL. Seems that I ...
11 years, 4 months ago (2009-07-31 05:07:35 UTC) #4
willchan no longer on Chromium
lgtm i'm about to take off soon, but feel free to commit. please monitor http://build.chromium.org/ ...
11 years, 4 months ago (2009-07-31 05:12:12 UTC) #5
James Su
Unfortunately, this CL still causes ui test failure when running with valgrind. Maybe sleeping 1 ...
11 years, 4 months ago (2009-07-31 07:05:23 UTC) #6
James Su
Hi, I changed the sleep timeout from 1 second to 10 seconds. But I found ...
11 years, 4 months ago (2009-07-31 08:22:40 UTC) #7
James Su
Hi, I just found the reason: when running ui_tests with valgrind, the browser process is ...
11 years, 4 months ago (2009-08-03 07:30:48 UTC) #8
James Su
Hi, I just migrated this CL to the latest trunk and fixed the valgrind ui_tests ...
11 years, 4 months ago (2009-08-04 04:48:19 UTC) #9
willchan no longer on Chromium
11 years, 4 months ago (2009-08-04 05:17:57 UTC) #10
lgtm!

Powered by Google App Engine
This is Rietveld 408576698