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

Unified Diff: runtime/bin/file_impl.dart

Issue 9225019: Fix race condition between signal handler and main thread. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/fdutils_macos.cc ('k') | runtime/bin/process_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_impl.dart
diff --git a/runtime/bin/file_impl.dart b/runtime/bin/file_impl.dart
index b3691606c0638c469f123f86cf7c37fdddb500b7..8cc8745113605a4fd15c3e5689cff98bb527681a 100644
--- a/runtime/bin/file_impl.dart
+++ b/runtime/bin/file_impl.dart
@@ -690,7 +690,7 @@ class _RandomAccessFile implements RandomAccessFile {
void close() {
_asyncUsed = true;
var handler = (_closeHandler != null) ? _closeHandler : () => null;
- var handleOpenResult = (result, ignored) {
+ var handleCloseResult = (result, ignored) {
if (result != -1) {
_id = result;
handler();
@@ -699,7 +699,7 @@ class _RandomAccessFile implements RandomAccessFile {
}
};
var operation = new _CloseOperation(_id);
- _scheduler.enqueue(operation, handleOpenResult);
+ _scheduler.enqueue(operation, handleCloseResult);
}
void closeSync() {
« no previous file with comments | « runtime/bin/fdutils_macos.cc ('k') | runtime/bin/process_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698