]> granicus.if.org Git - icinga2/commitdiff
Catch programming errors
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Mon, 15 Jul 2019 13:09:35 +0000 (15:09 +0200)
committerAlexander A. Klimov <alexander.klimov@icinga.com>
Mon, 15 Jul 2019 13:24:07 +0000 (15:24 +0200)
refs #5230

lib/cli/daemoncommand.cpp

index 7a95e2e7ef358e767547218ed52509ce7a7afafd..c2e55975bba93930c8806f3b374825d842e38ac9 100644 (file)
@@ -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");
        }
 }