mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-13 05:22:34 +00:00
fix(userspace/falco): properly handle termination at source opening failures
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
@@ -374,6 +374,7 @@ application::run_result application::process_events()
|
||||
// note: we don't return here because we need to reach
|
||||
// the thread termination loop below to make sure all
|
||||
// already-spawned threads get terminated gracefully
|
||||
ctx.finished->store(true, std::memory_order_seq_cst);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -395,6 +396,7 @@ application::run_result application::process_events()
|
||||
// the thread termination loop below to make sure all
|
||||
// already-spawned threads get terminated gracefully
|
||||
ctx.res = run_result::fatal(e.what());
|
||||
ctx.finished->store(true, std::memory_order_seq_cst);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user