mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
5e185834fc
This adds a scoped signal handler struct that performs some basic checks to avoid accidental replacement of an existing handler and cleanup when the handler goes out of scope. Also, adds scoped_signal_handler::wait_for_interrupt() which blocks until SIGINT is received (e.g. via Ctrl-C). BUG=None TEST=cargo test --workspace -- --test-threads=1 Change-Id: I5e649eac3d3ee0b842b200fc553acac44b2dfe94 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2807306 Reviewed-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Tested-by: Allen Webb <allenwebb@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Allen Webb <allenwebb@google.com> |
||
---|---|---|
.. | ||
poll_token_derive | ||
src | ||
.build_test_serial | ||
Cargo.toml |