• Christopher Fujino's avatar
    [flutter_tools] Run ShutdownHooks when handling signals (#134590) · 3d7cd359
    Christopher Fujino authored
    Fixes https://github.com/flutter/flutter/issues/134566.
    
    Prior to this fix, `ShutdownHooks` were run in the private helper
    function `_exit()` defined in the `package:flutter_tools/runner.dart`
    library. Independent of this, the tool had signal handling logic that
    traps SIGINT and SIGTERM. However, these handlers called `exit()` from
    `dart:io`, and didn't run these hooks.
    
    This PR moves the `_exit()` private helper to
    `package:flutter_tools/src/base/process.dart` and renames it to
    `exitWithHooks()`, so that it can be called by the signal handlers in
    `package:flutter_tools/src/base/signals.dart`.
    3d7cd359
Name
Last commit
Last update
.github Loading commit data...
.vscode Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.ci.yaml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
TESTOWNERS Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...