Core/SignalHandlerAppComponent: Fix warning
This commit is contained in:
parent
ae62e1f6c9
commit
66f7e4b6ad
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue