From 4d6cca53f71a1b309b3887848257d2caf1ee5dc3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 2 Oct 2022 10:29:55 +0800 Subject: [PATCH] crimson/osd/stop_signal: s/signaled/on_signal/ to better reflect that it is a callback gets called when receiving a signal. Signed-off-by: Kefu Chai --- src/crimson/osd/stop_signal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crimson/osd/stop_signal.h b/src/crimson/osd/stop_signal.h index 434156f1fb573..951f8d4b7fcfe 100644 --- a/src/crimson/osd/stop_signal.h +++ b/src/crimson/osd/stop_signal.h @@ -53,7 +53,7 @@ class stop_signal { seastar::abort_source _abort_source; private: - void signaled() { + void on_signal() { if (stopping()) { return; } @@ -62,8 +62,8 @@ private: } public: stop_signal() { - seastar::engine().handle_signal(SIGINT, [this] { signaled(); }); - seastar::engine().handle_signal(SIGTERM, [this] { signaled(); }); + seastar::engine().handle_signal(SIGINT, [this] { on_signal(); }); + seastar::engine().handle_signal(SIGTERM, [this] { on_signal(); }); } ~stop_signal() { // There's no way to unregister a handler yet, so register a no-op handler instead. -- 2.39.5