aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-17 00:53:41 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-17 00:53:41 +0200
commite0c410ee60c715c3f69b306fd5266b900d2274c1 (patch)
tree51c16bb5967d666b0f211e0efe1a7b0a93ec5e67 /src
parentGitignore update (diff)
download42-cub3d-e0c410ee60c715c3f69b306fd5266b900d2274c1.tar.gz
42-cub3d-e0c410ee60c715c3f69b306fd5266b900d2274c1.tar.bz2
42-cub3d-e0c410ee60c715c3f69b306fd5266b900d2274c1.tar.xz
42-cub3d-e0c410ee60c715c3f69b306fd5266b900d2274c1.tar.zst
42-cub3d-e0c410ee60c715c3f69b306fd5266b900d2274c1.zip
changes
Diffstat (limited to 'src')
-rw-r--r--src/ft_exit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 4f2494b..ea5cd2a 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -51,8 +51,8 @@ static void
pthread_cancel(clist->mtid);
pthread_join(clist->mtid, NULL);
}
- else
- system(FT_SND_TERM_CMD);
+ else if (system(FT_SND_TERM_CMD))
+ return ;
}
i = -1;
while (++i < FT_TOTAL_SFX)
@@ -63,8 +63,8 @@ static void
pthread_cancel(clist->sfx[i].tid);
pthread_join(clist->sfx[i].tid, NULL);
}
- else
- system(FT_SND_TERM_CMD);
+ else if (system(FT_SND_TERM_CMD))
+ return ;
}
}