diff options
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 { |