Browse Source

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

nfactor-troky
Con Kolivas 13 years ago
parent
commit
19e373b803
  1. 3
      util.c

3
util.c

@ -682,8 +682,7 @@ void thr_info_cancel(struct thr_info *thr) @@ -682,8 +682,7 @@ 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);
pthread_cancel(thr->pth);
PTH(thr) = 0L;
}
}

Loading…
Cancel
Save