diff options
| author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-06 19:12:10 +0100 | 
|---|---|---|
| committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-06 19:12:10 +0100 | 
| commit | f3aab6429d673342f4819f8a3c2857e48610689a (patch) | |
| tree | 58bdf90289a564a527feab138a61d1304ee9f1d1 /src/ft_exit.c | |
| parent | fork(3) going well, freed a leak (diff) | |
| download | 42-cub3d-f3aab6429d673342f4819f8a3c2857e48610689a.tar.gz 42-cub3d-f3aab6429d673342f4819f8a3c2857e48610689a.tar.bz2 42-cub3d-f3aab6429d673342f4819f8a3c2857e48610689a.tar.xz 42-cub3d-f3aab6429d673342f4819f8a3c2857e48610689a.tar.zst 42-cub3d-f3aab6429d673342f4819f8a3c2857e48610689a.zip | |
it's going well
Diffstat (limited to '')
| -rw-r--r-- | src/ft_exit.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/ft_exit.c b/src/ft_exit.c index 3ba1237..973abca 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -16,6 +16,7 @@  #include <stddef.h>  #include <stdlib.h>  #include <signal.h> +#include <sys/wait.h>  #include <stdint.h>  static void @@ -67,6 +68,7 @@ int  	if (clist->isoldmus && clist->wlist.inited)  	{  		kill(clist->mpid, SIGTERM); +		wait(&clist->mpid);  	}  	ft_free_lists(clist);  	ft_printf("Exiting program\n"); | 
