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

Unified Diff: sdk/lib/_internal/pub/test/run/forwards_signal_posix_test.dart

Issue 1075963002: Fix hanging process (kill of parent process leaves child as a zombie) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « no previous file | sdk/lib/_internal/pub/test/run/forwards_signal_windows_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/run/forwards_signal_posix_test.dart
diff --git a/sdk/lib/_internal/pub/test/run/forwards_signal_posix_test.dart b/sdk/lib/_internal/pub/test/run/forwards_signal_posix_test.dart
index ccfbe580e7a298164fda46dc692f6c184e8d5dab..6b9e2222d1a8d519cef006dbe844fa733db06546 100644
--- a/sdk/lib/_internal/pub/test/run/forwards_signal_posix_test.dart
+++ b/sdk/lib/_internal/pub/test/run/forwards_signal_posix_test.dart
@@ -19,11 +19,11 @@ const SCRIPT = """
import 'dart:io';
main() {
- ProcessSignal.SIGHUP.watch().listen(print);
- ProcessSignal.SIGTERM.watch().listen(print);
- ProcessSignal.SIGUSR1.watch().listen(print);
- ProcessSignal.SIGUSR2.watch().listen(print);
- ProcessSignal.SIGWINCH.watch().listen(print);
+ ProcessSignal.SIGHUP.watch().first.then(print);
+ ProcessSignal.SIGTERM.watch().first.then(print);
+ ProcessSignal.SIGUSR1.watch().first.then(print);
+ ProcessSignal.SIGUSR2.watch().first.then(print);
+ ProcessSignal.SIGWINCH.watch().first.then(print);
print("ready");
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/test/run/forwards_signal_windows_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698