From 0a8f2cf987a55d6e1c4b210f0f99a1a1e4e4460a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 15 Sep 2020 20:35:24 +0200 Subject: Partially fixing pipes (more than 1 still breaks) --- include/eval.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/eval.h') diff --git a/include/eval.h b/include/eval.h index 0a14406..819b3cc 100644 --- a/include/eval.h +++ b/include/eval.h @@ -6,7 +6,7 @@ /* By: charles +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:05:30 by charles #+# #+# */ -/* Updated: 2020/09/15 17:50:35 by charles ### ########.fr */ +/* Updated: 2020/09/15 20:09:27 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -49,14 +49,14 @@ extern pid_t g_child_pid; ** eval.c */ -int fork_wrap(int fds[2], void *passed, t_wrapped_func wrapped, pid_t *child_pid); -int eval(int fds[2], t_env env, t_ast *ast, pid_t *child_pid); +int fork_wrap(int fds[2], void *passed, t_wrapped_func wrapped, pid_t *child_pid, int fd_to_close); +int eval(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close); /* ** cmd.c */ -int eval_cmd(int fds[2], t_env env, t_ast *ast, pid_t *child_pid); +int eval_cmd(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close); /* ** operation.c @@ -68,7 +68,7 @@ int eval_operation(int fds[2], t_env env, t_ast *ast); ** parenthesis.c */ -int eval_parenthesis(int fds[2], t_env env, t_ast *ast); +int eval_parenthesis(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close); /* ** redir.c -- cgit