From 66f7e4b6ad60ebbf82794f411069a6b85a07ee40 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Thu, 17 Aug 2023 18:05:03 +0200 Subject: [PATCH] Core/SignalHandlerAppComponent: Fix warning --- src/Nazara/Core/SignalHandlerAppComponent.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Nazara/Core/SignalHandlerAppComponent.cpp b/src/Nazara/Core/SignalHandlerAppComponent.cpp index f8b6d6878..01c0eb16b 100644 --- a/src/Nazara/Core/SignalHandlerAppComponent.cpp +++ b/src/Nazara/Core/SignalHandlerAppComponent.cpp @@ -50,10 +50,10 @@ namespace Nz HandleInterruptSignal(strsignal(sig)); }; - if (sigaction(SIGINT, &action, nullptr) != 0) + if (sigaction(SIGINT, &action, nullptr) == 0) succeeded = true; - if (sigaction(SIGTERM, &action, nullptr) != 0) + if (sigaction(SIGTERM, &action, nullptr) == 0) succeeded = true; #endif