This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new 9ab1a043 feat(main): refine shutdown message to show signal name 
(#2733)
9ab1a043 is described below

commit 9ab1a043bbbb45dfb4213d16a2ab6e64a3c8a15b
Author: Twice <[email protected]>
AuthorDate: Sat Jan 25 12:03:27 2025 +0800

    feat(main): refine shutdown message to show signal name (#2733)
---
 src/cli/main.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/cli/main.cc b/src/cli/main.cc
index 11a64760..46b50604 100644
--- a/src/cli/main.cc
+++ b/src/cli/main.cc
@@ -45,9 +45,9 @@
 
 Server *srv = nullptr;
 
-extern "C" void SignalHandler([[maybe_unused]] int sig) {
+extern "C" void SignalHandler(int sig) {
   if (srv && !srv->IsStopped()) {
-    LOG(INFO) << "Signal " << sig << " received, stopping the server";
+    LOG(INFO) << "Signal " << strsignal(sig) << " (" << sig << ") received, 
stopping the server";
     srv->Stop();
   }
 }

Reply via email to