diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-06 18:10:14 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-06 18:10:14 +0100 |
commit | 16092c007e8767b32c107d74d3ea3d238f5e65ec (patch) | |
tree | b46cb8825ea0f7071ee4b48f37f78f853b13414c /src/ft_exit.c | |
parent | No pthread in Makefile (diff) | |
download | 42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.gz 42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.bz2 42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.xz 42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.tar.zst 42-cub3d-16092c007e8767b32c107d74d3ea3d238f5e65ec.zip |
Preparing forks
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 5 |
1 files changed, 1 insertions, 4 deletions
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 <stddef.h> #include <stdlib.h> #include <stdint.h> -#include <signal.h> -#include <pthread.h> 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"); |