summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_e_externs_pipes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_e_externs_pipes.c b/src/ft_e_externs_pipes.c
index c9268ac..c1c57b5 100644
--- a/src/ft_e_externs_pipes.c
+++ b/src/ft_e_externs_pipes.c
@@ -64,6 +64,7 @@ static void
int pid;
int status;
+ /* TODO: norm, error mgmnt */
pipes = ft_e_get_pipes_count(head);
i = 0;
while (i < pipes)
@@ -79,9 +80,7 @@ static void
if (i != 0)
dup2(fd[i - 1][FT_WRITE_END], STDIN_FILENO);
if (i != pipes)
- {
dup2(fd[i][FT_READ_END], STDOUT_FILENO);
- }
j = 0;
while (j < pipes)
{