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 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; }