Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 10809053: Terminate the engine if another instance is already running (Closed)

Created:
June 6, 2013, 1:43 p.m. by Felix Dahlke
Modified:
Nov. 12, 2013, 10:11 a.m.
Visibility:
Public.

Description

Contrary to what we discussed, I didn't use named mutexes for this. I'm using WaitNamedPipe to check for the existence of a pipe with that name. Works fine, and is simpler.

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -6 lines) Patch
M src/engine/main.cpp View 1 chunk +5 lines, -6 lines 2 comments Download
M src/shared/Communication.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/shared/Communication.cpp View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Felix Dahlke
June 6, 2013, 1:48 p.m. (2013-06-06 13:48:25 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/10809053/diff/1/src/engine/main.cpp File src/engine/main.cpp (right): http://codereview.adblockplus.org/10809053/diff/1/src/engine/main.cpp#newcode194 src/engine/main.cpp:194: } That's causing a race condition. It can take ...
June 7, 2013, 6:16 a.m. (2013-06-07 06:16:08 UTC) #2
Felix Dahlke
http://codereview.adblockplus.org/10809053/diff/1/src/engine/main.cpp File src/engine/main.cpp (right): http://codereview.adblockplus.org/10809053/diff/1/src/engine/main.cpp#newcode194 src/engine/main.cpp:194: } On 2013/06/07 06:16:08, Wladimir Palant wrote: > That's ...
June 7, 2013, 6:37 a.m. (2013-06-07 06:37:22 UTC) #3
Felix Dahlke
June 7, 2013, 8:07 a.m. (2013-06-07 08:07:55 UTC) #4
Implemented this with named pipes. It's in a new review, since this change was
already pushed:

http://codereview.adblockplus.org/10891004/

I'll close this one.

Powered by Google App Engine
This is Rietveld