From f458ac71ebdbc3a405fdcd9e9739cfee5f61d5e3 Mon Sep 17 00:00:00 2001 From: ReIVen <94102249+ReivenIV@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:19:25 +0100 Subject: [PATCH 1/2] main_bonus.c : line : close(STDIN_FILENO); erased --- bonus/main_bonus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bonus/main_bonus.c b/bonus/main_bonus.c index 5af513d..d02dcdd 100644 --- a/bonus/main_bonus.c +++ b/bonus/main_bonus.c @@ -84,7 +84,6 @@ static void run_last_command(t_pipex *pipex) close(outfile); execute(pipex, last_command); } - close(STDIN_FILENO); waitpid(pid, &exit_status, 0); pipex->exit_status_last_command = exit_status; } From 3c0112331bfe6a8a5ff28b81d3e99fdcd51cfce6 Mon Sep 17 00:00:00 2001 From: ReIVen <94102249+ReivenIV@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:24:53 +0100 Subject: [PATCH 2/2] Update Makefile "make re" compiles bonus aswell --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f0f3eaa..e522293 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,6 @@ clean: fclean: clean rm -rf $(NAME) $(NAME_BONUS) -re: fclean all +re: fclean all bonus .PHONY: clean fclean re all val