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

Issue 1228703007: Fix a race condition in file watcher. (Closed)

Created:
5 years, 5 months ago by nweiz
Modified:
5 years, 5 months ago
CC:
reviews_dartlang.org, Bob Nystrom
Base URL:
git@github.com:dart-lang/watcher@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix a race condition in file watcher. It was possible for events to be added to the events controller after it had been closed if the call to close() came in while a method was waiting on an asynchronous callback. R=cbracken@google.com Committed: https://github.com/dart-lang/watcher/commit/e7fa8d08336ccb4f65b59e6cd641f782aaa350c4

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -8 lines) Patch
M CHANGELOG.md View 1 chunk +5 lines, -0 lines 0 comments Download
M lib/src/file_watcher/native.dart View 1 chunk +11 lines, -4 lines 0 comments Download
M lib/src/file_watcher/polling.dart View 2 chunks +9 lines, -3 lines 2 comments Download
M pubspec.yaml View 1 chunk +1 line, -1 line 0 comments Download
M test/file_watcher/shared.dart View 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
nweiz
5 years, 5 months ago (2015-07-16 23:06:08 UTC) #2
Chris Bracken
lgtm
5 years, 5 months ago (2015-07-16 23:23:38 UTC) #3
nweiz
Committed patchset #1 (id:1) manually as e7fa8d08336ccb4f65b59e6cd641f782aaa350c4 (presubmit successful).
5 years, 5 months ago (2015-07-16 23:25:01 UTC) #4
Bob Nystrom
https://codereview.chromium.org/1228703007/diff/1/lib/src/file_watcher/polling.dart File lib/src/file_watcher/polling.dart (right): https://codereview.chromium.org/1228703007/diff/1/lib/src/file_watcher/polling.dart#newcode67 lib/src/file_watcher/polling.dart:67: } finally { Can you just add this to ...
5 years, 5 months ago (2015-07-17 15:58:22 UTC) #6
nweiz
https://codereview.chromium.org/1228703007/diff/1/lib/src/file_watcher/polling.dart File lib/src/file_watcher/polling.dart (right): https://codereview.chromium.org/1228703007/diff/1/lib/src/file_watcher/polling.dart#newcode67 lib/src/file_watcher/polling.dart:67: } finally { On 2015/07/17 15:58:22, Bob Nystrom wrote: ...
5 years, 5 months ago (2015-07-17 20:42:18 UTC) #7
Bob Nystrom
5 years, 5 months ago (2015-07-17 20:48:36 UTC) #8
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698