From 87266d13608f3caee006a75417323cd7c431c225 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 24 Apr 2020 14:31:44 +0200 Subject: Try that --- src/ft_exit.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/ft_exit.c b/src/ft_exit.c index e0531c3..1d35ea1 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -46,26 +46,16 @@ static void if (clist->isoldmus && clist->wlist.inited) { - /* if (FT_OS == 2) */ - /* { */ - /* pthread_cancel(clist->mtid); */ - /* pthread_join(clist->mtid, NULL); */ - /* } */ if (system(FT_SND_TERM_CMD)) return ; } i = -1; while (++i < FT_TOTAL_SFX) { - /* pthread_mutex_unlock(&clist->sfx[i].mutex); */ - /* if (FT_OS == 2) */ - /* { */ - /* pthread_cancel(clist->sfx[i].tid); */ - /* pthread_join(clist->sfx[i].tid, NULL); */ - /* } */ - if (system(FT_SND_TERM_CMD)) - return ; + pthread_mutex_unlock(&clist->sfx[i].mutex); } + if (system(FT_SND_TERM_CMD)) + return ; } int -- cgit v1.2.3