aboutsummaryrefslogtreecommitdiff
path: root/src/eval/operation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/operation.c')
-rw-r--r--src/eval/operation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval/operation.c b/src/eval/operation.c
index f1daa0b..826727a 100644
--- a/src/eval/operation.c
+++ b/src/eval/operation.c
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/06/17 15:27:22 by charles #+# #+# */
-/* Updated: 2020/10/09 16:12:14 by cacharle ### ########.fr */
+/* Updated: 2020/10/09 20:39:33 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -69,6 +69,7 @@ int eval_pipeline(t_env env, t_ast *ast)
int pid;
pipes[PIPES_PREV_OUTPUT] = STDIN_FILENO;
+ pipes[FD_READ] = -1;
curr = ast->pipeline;
while (curr->next != NULL)
{