diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 19:31:49 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 19:31:49 +0100 |
commit | 162df0a132b3baa19086a16b1c34ea871e3cd418 (patch) | |
tree | 01c1c58fbabb8c5baa74991405ae96819d6b8229 /src/ft_sfx_trap.c | |
parent | I hate code (diff) | |
download | 42-cub3d-162df0a132b3baa19086a16b1c34ea871e3cd418.tar.gz 42-cub3d-162df0a132b3baa19086a16b1c34ea871e3cd418.tar.bz2 42-cub3d-162df0a132b3baa19086a16b1c34ea871e3cd418.tar.xz 42-cub3d-162df0a132b3baa19086a16b1c34ea871e3cd418.tar.zst 42-cub3d-162df0a132b3baa19086a16b1c34ea871e3cd418.zip |
There is no way I pthread
Diffstat (limited to 'src/ft_sfx_trap.c')
-rw-r--r-- | src/ft_sfx_trap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_sfx_trap.c b/src/ft_sfx_trap.c index b52b9c1..1499ecf 100644 --- a/src/ft_sfx_trap.c +++ b/src/ft_sfx_trap.c @@ -15,7 +15,6 @@ #include <unistd.h> #include <stdint.h> -#include <pthread.h> static void ft_sfx_pain(t_cub *cl) { @@ -41,7 +40,7 @@ void ft_sfx_trap(t_cub *cl) { cl->sfx.trap_pid = fork(); - else if (cl->sfx.trap_pid == 0) + if (cl->sfx.trap_pid == 0) execve(*(cl->sfx.trap + 0), cl->sfx.trap, cl->envp); else { |