• 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
..
analyze_size_test.dart Loading commit data...
async_guard_test.dart Loading commit data...
bot_detector_test.dart Loading commit data...
build_test.dart Loading commit data...
command_help_test.dart Loading commit data...
common_test.dart Loading commit data...
context_test.dart Loading commit data...
deferred_component_test.dart Loading commit data...
error_handling_io_test.dart Loading commit data...
file_system_test.dart Loading commit data...
fingerprint_test.dart Loading commit data...
io_test.dart Loading commit data...
logger_test.dart Loading commit data...
multi_root_file_system_test.dart Loading commit data...
net_test.dart Loading commit data...
os_test.dart Loading commit data...
os_utils_test.dart Loading commit data...
platform_test.dart Loading commit data...
process_test.dart Loading commit data...
signals_test.dart Loading commit data...
task_queue_test.dart Loading commit data...
terminal_test.dart Loading commit data...
user_messages_test.dart Loading commit data...