Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9a9a3ffd
Commit
9a9a3ffd
authored
Feb 28, 2017
by
Michael Goderbauer
Committed by
GitHub
Feb 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `flutter logs` on Windows (#8442)
parent
6491cbf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
logs.dart
packages/flutter_tools/lib/src/commands/logs.dart
+7
-4
No files found.
packages/flutter_tools/lib/src/commands/logs.dart
View file @
9a9a3ffd
...
@@ -6,6 +6,7 @@ import 'dart:async';
...
@@ -6,6 +6,7 @@ import 'dart:async';
import
'../base/common.dart'
;
import
'../base/common.dart'
;
import
'../base/io.dart'
;
import
'../base/io.dart'
;
import
'../base/platform.dart'
;
import
'../cache.dart'
;
import
'../cache.dart'
;
import
'../device.dart'
;
import
'../device.dart'
;
import
'../globals.dart'
;
import
'../globals.dart'
;
...
@@ -66,10 +67,12 @@ class LogsCommand extends FlutterCommand {
...
@@ -66,10 +67,12 @@ class LogsCommand extends FlutterCommand {
printStatus
(
''
);
printStatus
(
''
);
exitCompleter
.
complete
(
0
);
exitCompleter
.
complete
(
0
);
});
});
ProcessSignal
.
SIGTERM
.
watch
().
listen
((
ProcessSignal
signal
)
{
if
(!
platform
.
isWindows
)
{
// https://github.com/dart-lang/sdk/issues/28603
subscription
.
cancel
();
ProcessSignal
.
SIGTERM
.
watch
().
listen
((
ProcessSignal
signal
)
{
exitCompleter
.
complete
(
0
);
subscription
.
cancel
();
});
exitCompleter
.
complete
(
0
);
});
}
// Wait for the log reader to be finished.
// Wait for the log reader to be finished.
int
result
=
await
exitCompleter
.
future
;
int
result
=
await
exitCompleter
.
future
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment