mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-04 10:26:40 +00:00
fix(userspace/falco): check conditions in right order
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
a98a1b2c4c
commit
88c7202fdc
@ -98,6 +98,11 @@ application::run_result application::do_inspect(
|
|||||||
{
|
{
|
||||||
rc = inspector->next(&ev);
|
rc = inspector->next(&ev);
|
||||||
|
|
||||||
|
if (should_reopen_outputs())
|
||||||
|
{
|
||||||
|
reopen_outputs();
|
||||||
|
}
|
||||||
|
|
||||||
if(should_terminate())
|
if(should_terminate())
|
||||||
{
|
{
|
||||||
terminate();
|
terminate();
|
||||||
@ -108,10 +113,6 @@ application::run_result application::do_inspect(
|
|||||||
restart();
|
restart();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (should_reopen_outputs())
|
|
||||||
{
|
|
||||||
reopen_outputs();
|
|
||||||
}
|
|
||||||
else if(rc == SCAP_TIMEOUT)
|
else if(rc == SCAP_TIMEOUT)
|
||||||
{
|
{
|
||||||
if(unlikely(ev == nullptr))
|
if(unlikely(ev == nullptr))
|
||||||
|
Loading…
Reference in New Issue
Block a user