mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-23 19:07:55 +00:00
fix(userspace/falco): solve warning
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
@@ -83,12 +83,15 @@ application::run_result application::create_signal_handlers()
|
|||||||
falco_logger::log(LOG_WARNING, "Bundled atomics implementation is not lock-free, signal handlers may be unstable\n");
|
falco_logger::log(LOG_WARNING, "Bundled atomics implementation is not lock-free, signal handlers may be unstable\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// we use the if just to make sure we return at the first failed statement
|
|
||||||
run_result ret;
|
run_result ret;
|
||||||
if(! create_handler(SIGINT, ::terminate_signal_handler, ret) ||
|
if(! create_handler(SIGINT, ::terminate_signal_handler, ret) ||
|
||||||
! create_handler(SIGTERM, ::terminate_signal_handler, ret) ||
|
! create_handler(SIGTERM, ::terminate_signal_handler, ret) ||
|
||||||
! create_handler(SIGUSR1, ::reopen_outputs_signal_handler, ret) ||
|
! create_handler(SIGUSR1, ::reopen_outputs_signal_handler, ret) ||
|
||||||
! create_handler(SIGHUP, ::restart_signal_handler, ret));
|
! create_handler(SIGHUP, ::restart_signal_handler, ret))
|
||||||
|
{
|
||||||
|
// we use the if just to make sure we return at the first failed statement
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user