From a55e414f6709c6b22ff9805cd32a40fae9da2538 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 9 Oct 2020 20:40:49 +0200 Subject: Added interpolation prototype (segfault on linux otherwise) --- src/eval/operation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/eval') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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) { -- cgit