mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-26 22:57:24 +00:00
fix(userspace): remove unread variable in restart_handler
When hitting that part, the restart signal is triggered and the code leaves the loop, hence setting should_restart as false makes no sense in this context. Signed-off-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
parent
ad585cd46b
commit
05e796723f
@ -158,7 +158,6 @@ void falco::app::restart_handler::watcher_loop() noexcept
|
|||||||
// at least we don't make users wait for the timeout.
|
// at least we don't make users wait for the timeout.
|
||||||
if (should_restart)
|
if (should_restart)
|
||||||
{
|
{
|
||||||
should_restart = false;
|
|
||||||
// todo(jasondellaluce): make this a callback too maybe?
|
// todo(jasondellaluce): make this a callback too maybe?
|
||||||
g_restart_signal.trigger();
|
g_restart_signal.trigger();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user