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

Unified Diff: runtime/bin/process_win.cc

Issue 285023002: Fix listening for multiple signals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/process_macos.cc ('k') | tests/standalone/io/signal_test_script.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_win.cc
diff --git a/runtime/bin/process_win.cc b/runtime/bin/process_win.cc
index 3875b4f51f1faef3ffd49cdd6fe2dd70853e9a21..56d38be700fe085033d7f2e90294e284995e4edb 100644
--- a/runtime/bin/process_win.cc
+++ b/runtime/bin/process_win.cc
@@ -920,10 +920,8 @@ intptr_t Process::SetSignalHandler(intptr_t signal) {
SetLastError(error_code);
return -1;
}
- signal_handlers = new SignalInfo(write_fd, signal);
- } else {
- new SignalInfo(write_fd, signal, signal_handlers);
}
+ signal_handlers = new SignalInfo(write_fd, signal, signal_handlers);
return reinterpret_cast<intptr_t>(new FileHandle(fds[kReadHandle]));
}
« no previous file with comments | « runtime/bin/process_macos.cc ('k') | tests/standalone/io/signal_test_script.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698