From 16092c007e8767b32c107d74d3ea3d238f5e65ec Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Mar 2020 18:10:14 +0100 Subject: Preparing forks --- src/ft_exit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index ca5201c..c7b2275 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -16,8 +16,6 @@ #include #include #include -#include -#include static void ft_free_lists(t_cub *clist) @@ -67,8 +65,7 @@ int } if (clist->isoldmus && clist->wlist.inited) { - pthread_cancel(clist->tid); - pthread_join(clist->tid, NULL); + /* kill fork() here */ } ft_free_lists(clist); ft_printf("Exiting program\n"); -- cgit v1.2.3