Core/SignalHandlerAppComponent: Fix warning
This commit is contained in:
@@ -50,10 +50,10 @@ namespace Nz
|
|||||||
HandleInterruptSignal(strsignal(sig));
|
HandleInterruptSignal(strsignal(sig));
|
||||||
};
|
};
|
||||||
|
|
||||||
if (sigaction(SIGINT, &action, nullptr) != 0)
|
if (sigaction(SIGINT, &action, nullptr) == 0)
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
|
|
||||||
if (sigaction(SIGTERM, &action, nullptr) != 0)
|
if (sigaction(SIGTERM, &action, nullptr) == 0)
|
||||||
succeeded = true;
|
succeeded = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user