From aba4d07c62e79f9ad75692fefb9f2346fe97fbde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20D=C3=A9nes?= Date: Thu, 13 Feb 2025 04:10:27 -0500 Subject: [PATCH] tools/utils: configure_tool_mode: set auto_handle_sigint_sigterm = false Disable seastar's built in handlers for SIGINT and SIGTERM and thus fall-back to the OS's default handlers, which terminate the process. This makes tool applications interruptable by SIGINT and SIGTERM. The default handler just terminates the tool app immediately and doesn't allow for cleanup, but this is fine: the tools have no important data to save or any critical cleanup to do before exiting. Fixes: scylladb/scylladb#16954 Closes scylladb/scylladb#22838 --- tools/utils.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/utils.cc b/tools/utils.cc index c36526a0b1..b9e35192d6 100644 --- a/tools/utils.cc +++ b/tools/utils.cc @@ -140,6 +140,10 @@ const operation* get_selected_operation(int& ac, char**& av, const std::vector