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

Unified Diff: lib/src/executable.dart

Issue 1101773002: Add Windows support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Unused import Created 5 years, 8 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 | « CHANGELOG.md ('k') | lib/src/runner/browser/compiler_pool.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/executable.dart
diff --git a/lib/src/executable.dart b/lib/src/executable.dart
index 44871a2a2055f4d95edf11b7544f095a4ea34d89..7b0e6c72f74f22843e5be6e8fb6c8cbedc31dae2 100644
--- a/lib/src/executable.dart
+++ b/lib/src/executable.dart
@@ -40,9 +40,12 @@ final _defaultConcurrency = math.max(1, Platform.numberOfProcessors ~/ 2);
/// Signals will only be captured as long as this has an active subscription.
/// Otherwise, they'll be handled by Dart's default signal handler, which
/// terminates the program immediately.
-final _signals = mergeStreams([
- ProcessSignal.SIGTERM.watch(), ProcessSignal.SIGINT.watch()
-]);
+final _signals = Platform.isWindows
+ ? ProcessSignal.SIGINT.watch()
+ : mergeStreams([
+ ProcessSignal.SIGTERM.watch(),
+ ProcessSignal.SIGINT.watch()
+ ]);
/// Returns whether the current package has a pubspec which uses the
/// `test/pub_serve` transformer.
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/runner/browser/compiler_pool.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698