Skip to content

Commit

Permalink
fix(engine/modules) : segfault when joining thread (dev-21.10.x) (#110)
Browse files Browse the repository at this point in the history
REFS : MON-11819
  • Loading branch information
Maaown authored and bouda1 committed Dec 10, 2021
1 parent 11e84f5 commit 9bccb46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ is stopped.
*tls*

Printing encrypted write logs on trace level only.

*modules*

Fixing segfault
3 changes: 2 additions & 1 deletion centreon-engine/modules/external_commands/src/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ int shutdown_command_file_worker_thread(void) {
should_exit = true;

/* wait for the worker thread to exit */
worker->join();
if (worker && worker->joinable())
worker->join();
}

return OK;
Expand Down

0 comments on commit 9bccb46

Please sign in to comment.