From 19e373b80315bde0d38472025ddd1da1ff916591 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 30 Dec 2011 11:31:16 +1100 Subject: [PATCH] All threads are detached so there is no need to join them and it may dereference causing crash on exit. --- util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/util.c b/util.c index a9a32966..0657bba6 100644 --- a/util.c +++ b/util.c @@ -682,9 +682,8 @@ void thr_info_cancel(struct thr_info *thr) tq_freeze(thr->q); if (PTH(thr) != 0L) { - if (!pthread_cancel(thr->pth)) - pthread_join(thr->pth, NULL); - PTH(thr) = 0L; + pthread_cancel(thr->pth); + PTH(thr) = 0L; } }