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

Unified Diff: runtime/bin/vmservice_impl.cc

Issue 339193003: Avoid calling anything related to signals on Windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
Index: runtime/bin/vmservice_impl.cc
diff --git a/runtime/bin/vmservice_impl.cc b/runtime/bin/vmservice_impl.cc
index 80d7dc0e8bab6e1bf76482940e7883a784866316..32edb0cb871c0b691c56be22644235fdbc2b5911 100644
--- a/runtime/bin/vmservice_impl.cc
+++ b/runtime/bin/vmservice_impl.cc
@@ -142,6 +142,16 @@ bool VmService::_Start(const char *server_ip, intptr_t server_port) {
Dart_SetField(library,
DartUtils::NewString("_autoStart"),
Dart_NewBoolean(auto_start));
+ // We cannot register for signals on windows.
Anders Johnsen 2014/06/18 07:24:11 Remove this.
+#if defined(TARGET_OS_WINDOWS)
+ const bool is_windows = true;
+#else
+ const bool is_windows = false;
+#endif
+ Dart_SetField(library,
+ DartUtils::NewString("_isWindows"),
+ Dart_NewBoolean(is_windows));
+
// Invoke main.
result = Dart_Invoke(library, DartUtils::NewString("main"), 0, NULL);
SHUTDOWN_ON_ERROR(result);
« runtime/bin/vmservice/vmservice_io.dart ('K') | « runtime/bin/vmservice/vmservice_io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698