From f22d5653d8def54ef451d4ed9d8a829fce286c1c Mon Sep 17 00:00:00 2001 From: yosyo Date: Fri, 9 Aug 2024 19:06:14 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20aled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exec/exec_cmd.c | 2 +- src/exec/exec_split_cmd.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/exec/exec_cmd.c b/src/exec/exec_cmd.c index b6f6517..a59667b 100644 --- a/src/exec/exec_cmd.c +++ b/src/exec/exec_cmd.c @@ -6,7 +6,7 @@ /* By: mmoussou next->content))->infile = exec.pipe_fd[0]; exec.status = exec_fork_cmd(list_cmd->content, exec.env_array, \ env, exec.pipe_fd); - __close(list_cmd->content, exec.pipe_fd[0], exec.pipe_fd[1]); + __close(list_cmd->content, -1, -1); if (exec.status != -1) exec.i++; list_cmd = list_cmd->next;