diff options
-rw-r--r-- | src/ft_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 988a0cf..a1813d5 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -49,6 +49,7 @@ static void if (FT_OS == 2) { pthread_cancel(clist->sfx[i].tid); + pthread_join(clist->sfx[i].tid, NULL); } else system(FT_SND_TERM_CMD); @@ -60,6 +61,7 @@ static void if (FT_OS == 2) { pthread_cancel(clist->sfx[i].tid); + pthread_join(clist->sfx[i].tid, NULL); } else system(FT_SND_TERM_CMD); |