aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 22:22:26 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 22:22:26 +0100
commit109c17dc68f08f0120e7ad9e7cdae93265afe7e0 (patch)
tree5f1749d0c02a5f4b67e8fac8dd9e54596772ee3b /src/ft_exit.c
parentMaps is cool yo (diff)
download42-cub3d-109c17dc68f08f0120e7ad9e7cdae93265afe7e0.tar.gz
42-cub3d-109c17dc68f08f0120e7ad9e7cdae93265afe7e0.tar.bz2
42-cub3d-109c17dc68f08f0120e7ad9e7cdae93265afe7e0.tar.xz
42-cub3d-109c17dc68f08f0120e7ad9e7cdae93265afe7e0.tar.zst
42-cub3d-109c17dc68f08f0120e7ad9e7cdae93265afe7e0.zip
Clean
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 92da2a6..a63d600 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -64,10 +64,7 @@ int
if (clist->isoldmus && clist->wlist.inited)
{
pthread_cancel(clist->tid);
- if (FT_OS == 1)
- pthread_kill(clist->tid, SIGTERM);
- else
- pthread_join(clist->tid, NULL);
+ pthread_join(clist->tid, NULL);
}
ft_free_lists(clist);
ft_printf("Exiting program\n");