Skip to content

Commit

Permalink
fix(userspace/falco): properly handle termination at source opening f…
Browse files Browse the repository at this point in the history
…ailures

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce authored and poiana committed Oct 11, 2022
1 parent 88c7202 commit 5f2bc6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions userspace/falco/app_actions/process_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 5f2bc6a

Please sign in to comment.