Core/SignalHandlerAppComponent: Fix warning

This commit is contained in:
SirLynix 2023-08-17 18:05:03 +02:00
parent ae62e1f6c9
commit 66f7e4b6ad
1 changed files with 2 additions and 2 deletions

View File

@ -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