From 48ccff3d712a2b30de8b94a5688afae7ee91a1c6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 2 Mar 2020 16:09:57 +0100 Subject: YES --- src/ft_exit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index 493e00f..d4fb4f9 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -16,6 +16,7 @@ #include #include #include +#include static void ft_free_lists(t_cub *clist) @@ -63,6 +64,8 @@ int } ft_free_lists(clist); ft_printf("Exiting program\n"); + pthread_cancel(clist->tid); + pthread_exit(NULL); exit(exit_code); return (0); } -- cgit v1.2.3