From cc0fb6933fb2bb727e52c6ef8a7f26b20454e72e Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 3 Feb 2021 19:15:16 +0100 Subject: Fixing -Wunused-result --- libft | 2 +- src/eval/operation.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libft b/libft index c333433..50673fc 160000 --- a/libft +++ b/libft @@ -1 +1 @@ -Subproject commit c33343322ef66d96337533082313b1256862023a +Subproject commit 50673fcdac35a0854fd9799aa8a987fb20e84520 diff --git a/src/eval/operation.c b/src/eval/operation.c index 3df3c85..0a31080 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/10 18:17:15 by charles ### ########.fr */ +/* Updated: 2021/02/03 19:11:54 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -102,7 +102,8 @@ int eval_pipeline(t_env env, t_ast *ast) curr = ast->pipeline; while (curr->next != NULL) { - pipe(pipes); + if (pipe(pipes) != 0) + return (EVAL_FATAL); st_run_piped(env, curr->data, pipes, false); close(pipes[FD_WRITE]); if (pipes[PIPES_PREV_OUTPUT] != STDIN_FILENO) -- cgit