This commit is contained in:
Nikita Ivanov 2022-06-19 15:57:06 +05:00
parent 31046831a1
commit b5c759a68b
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -36,7 +36,7 @@ static void sig_handler_exit(int s)
static int register_signal(int sig, __sighandler_t handler)
{
ERRCHK_RET_ERN(signal(sig, handler));
ERRCHK_RET_ERN(signal(sig, handler) == SIG_ERR);
return OK;
}