mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() 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`. |
||
---|---|---|
.. | ||
analyze_size_test.dart | ||
async_guard_test.dart | ||
bot_detector_test.dart | ||
build_test.dart | ||
command_help_test.dart | ||
common_test.dart | ||
context_test.dart | ||
deferred_component_test.dart | ||
error_handling_io_test.dart | ||
file_system_test.dart | ||
fingerprint_test.dart | ||
io_test.dart | ||
logger_test.dart | ||
multi_root_file_system_test.dart | ||
net_test.dart | ||
os_test.dart | ||
os_utils_test.dart | ||
platform_test.dart | ||
process_test.dart | ||
signals_test.dart | ||
task_queue_test.dart | ||
terminal_test.dart | ||
user_messages_test.dart |