diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-24 17:03:02 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-24 17:03:02 +0200 |
commit | 4103f0de5325df1ba0da632996b0a055ab3f39be (patch) | |
tree | 378b5dad7f9509a93626a9a001e24047a29b35ed /src/ft_exit.c | |
parent | Retry (diff) | |
download | 42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.gz 42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.bz2 42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.xz 42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.tar.zst 42-cub3d-4103f0de5325df1ba0da632996b0a055ab3f39be.zip |
Maybe that
Diffstat (limited to 'src/ft_exit.c')
-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); |