From 9e557ee5e26ab64ee2dac902c6d79d27702c93bd Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 18 Jun 2010 17:08:04 +0200 Subject: [PATCH] Destroy FORB executors thread running allocators in frsh_destroy() This avoid sporadic segfault in frsh_destroy() --- frsh_api/frsh_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frsh_api/frsh_core.c b/frsh_api/frsh_core.c index c0f2cd4..348e8e0 100644 --- a/frsh_api/frsh_core.c +++ b/frsh_api/frsh_core.c @@ -161,6 +161,9 @@ err: void frsh_destroy() { + pthread_cancel(frsh_forb_global.alloc_executor_thread.pthread_id); + pthread_join(frsh_forb_global.alloc_executor_thread.pthread_id, NULL); + forb_destroy(frsh_forb_global.orb); /* TODO: Destroy all FRAs etc. */ } -- 2.39.2