aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 14:31:44 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 14:31:44 +0200
commit87266d13608f3caee006a75417323cd7c431c225 (patch)
tree52c42058f5525bd0a2f47f5fbb67d4b178edf671 /src
parentTest (diff)
download42-cub3d-87266d13608f3caee006a75417323cd7c431c225.tar.gz
42-cub3d-87266d13608f3caee006a75417323cd7c431c225.tar.bz2
42-cub3d-87266d13608f3caee006a75417323cd7c431c225.tar.xz
42-cub3d-87266d13608f3caee006a75417323cd7c431c225.tar.zst
42-cub3d-87266d13608f3caee006a75417323cd7c431c225.zip
Try that
Diffstat (limited to 'src')
-rw-r--r--src/ft_exit.c16
1 files 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