Core/SignalHandlerAppComponent: Fix "failed to install signal handlers" warning popping out even if it worked

This commit is contained in:
SirLynix 2023-08-16 18:18:33 +02:00
parent 49adcd7b81
commit 0989a25a99
1 changed files with 2 additions and 2 deletions

View File

@ -51,10 +51,10 @@ namespace Nz
}; };
if (sigaction(SIGINT, &action, nullptr) != 0) if (sigaction(SIGINT, &action, nullptr) != 0)
succeeded = false; succeeded = true;
if (sigaction(SIGTERM, &action, nullptr) != 0) if (sigaction(SIGTERM, &action, nullptr) != 0)
succeeded = false; succeeded = true;
#endif #endif
if (!succeeded) if (!succeeded)