1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

All threads are detached so there is no need to join them and it may dereference causing crash on exit.

This commit is contained in:
Con Kolivas 2011-12-30 11:31:16 +11:00
parent c7c838d780
commit 19e373b803

5
util.c
View File

@ -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;
}
}