From 368ebf4fbfc0391cbb9cd0319cd09b423e2b68e4 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 15 Jul 2019 15:09:35 +0200 Subject: [PATCH] Catch programming errors refs #5230 --- lib/cli/daemoncommand.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/cli/daemoncommand.cpp b/lib/cli/daemoncommand.cpp index 7a95e2e7e..c2e55975b 100644 --- a/lib/cli/daemoncommand.cpp +++ b/lib/cli/daemoncommand.cpp @@ -293,6 +293,9 @@ static void UmbrellaSignalHandler(int num, siginfo_t *info, void*) break; case SIGHUP: l_RequestedReload.store(true); + break; + default: + VERIFY(!"Caught unexpected signal"); } } @@ -309,6 +312,9 @@ static void WorkerSignalHandler(int num, siginfo_t *info, void*) if (info->si_pid == l_UmbrellaPid) { Application::RequestShutdown(); } + break; + default: + VERIFY(!"Caught unexpected signal"); } } -- 2.40.0