flutter/packages/flutter_tools/test
Yegor 371aadd822
[tool] fallback to sigkill when closing Chromium (#135521)
This implements https://github.com/flutter/flutter/issues/132654#issuecomment-1738221257, namely:

Make `Chromium.close` more robust:

* Send `SIGTERM` and wait up to 5 seconds, if the process exited, great! Return from the function.
* If the process has not exited, then send a `SIGKILL`, which is a much firmer way to exit a process. Same as before, wait up to 5 seconds, if the process exited, great! Return from the function.
* If it still hasn't exited then give up trying to exit Chromium, just print a warning to the console and return from the function.

Bonus: a few nullability fixes and extra `-v` logging.

Fixes https://github.com/flutter/flutter/issues/132654
2023-09-28 22:28:31 +00:00
..
commands.shard flutter config --list (#135401) 2023-09-27 07:02:13 +00:00
data Enable private field promotion for flutter_tools (#134474) 2023-09-12 20:20:04 +00:00
general.shard [tool] fallback to sigkill when closing Chromium (#135521) 2023-09-28 22:28:31 +00:00
host_cross_arch.shard Native assets support for MacOS and iOS (#130494) 2023-09-10 08:07:13 +00:00
integration.shard Native assets support for Windows (#134203) 2023-09-27 12:22:58 +00:00
src [tool] fallback to sigkill when closing Chromium (#135521) 2023-09-28 22:28:31 +00:00
web.shard [tool] fallback to sigkill when closing Chromium (#135521) 2023-09-28 22:28:31 +00:00