Core/SignalHandlerAppComponent: Fix "failed to install signal handlers" warning popping out even if it worked
This commit is contained in:
parent
49adcd7b81
commit
0989a25a99
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue