🔨」 fix: fix env in exec

This commit is contained in:
2024-07-15 12:36:05 +02:00
parent 06abdc7b1c
commit ab31b83147
4 changed files with 10 additions and 9 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/01 14:55:06 by mmoussou #+# #+# */
/* Updated: 2024/07/14 15:48:41 by mmoussou ### ########.fr */
/* Updated: 2024/07/14 20:13:30 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -86,6 +86,8 @@ int exec_single_cmd(t_cmd *cmd, char **env, t_env *env_t, int pipe_fd[2])
fork_pid = fork();
if (!fork_pid)
__fork_single_cmd(cmd, env, env_t, exec);
signal(SIGQUIT, SIG_IGN);
signal(SIGINT, SIG_IGN);
return (fork_pid);
}