summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-06-26 18:37:01 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-06-26 18:37:01 +0200
commit3e7f964b4ec1de47f8499787e76c5f95ba735367 (patch)
treee7df2d0982445df62c22f301e4991f16b32c1005 /src
parentIt works NICE norm later (diff)
download42-minishell-3e7f964b4ec1de47f8499787e76c5f95ba735367.tar.gz
42-minishell-3e7f964b4ec1de47f8499787e76c5f95ba735367.tar.bz2
42-minishell-3e7f964b4ec1de47f8499787e76c5f95ba735367.tar.xz
42-minishell-3e7f964b4ec1de47f8499787e76c5f95ba735367.tar.zst
42-minishell-3e7f964b4ec1de47f8499787e76c5f95ba735367.zip
Updated todolist
Diffstat (limited to 'src')
-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)
{