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

Unified Diff: runtime/bin/vmservice/vmservice_io.dart

Issue 584023004: Service isolate rework (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/vmservice_io.dart
diff --git a/runtime/bin/vmservice/vmservice_io.dart b/runtime/bin/vmservice/vmservice_io.dart
index c04d485dbf27a20b724cdf7187ad3f6d4f45f5f9..4d4aee4d6c8918696a28b2f41e6cde7fc7ed7327 100644
--- a/runtime/bin/vmservice/vmservice_io.dart
+++ b/runtime/bin/vmservice/vmservice_io.dart
@@ -21,10 +21,14 @@ bool _autoStart;
bool _isWindows = false;
+var _signalWatch;
+
// HTTP servr.
Server server;
Future<Server> serverFuture;
+
+
void _bootServer() {
// Load resources.
_triggerResourceLoad();
@@ -54,18 +58,18 @@ void _onSignal(ProcessSignal signal) {
}
}
-void _registerSignalHandler(Stream signalWatch(ProcessSignal signal)) {
+void _registerSignalHandler() {
if (_isWindows) {
// Cannot register for signals on Windows.
return;
}
- signalWatch(ProcessSignal.SIGQUIT).listen(_onSignal);
+ _signalWatch(ProcessSignal.SIGQUIT).listen(_onSignal);
}
-main(Stream signalWatch(ProcessSignal signal)) {
+main() {
if (_autoStart) {
_bootServer();
server.startup();
}
- _registerSignalHandler(signalWatch);
+ _registerSignalHandler();
}

Powered by Google App Engine
This is Rietveld 408576698