diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-13 11:34:26 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-13 14:51:10 +0200 |
| commit | e63d7878ad5d5ad7ceec11e1e8ac79aced93fbc0 (patch) | |
| tree | 1cf021174499677c415eeda12bb9210758a661cf /include | |
| parent | 7e7219da26b9d256e451f8dddb66641d11f75434 (diff) | |
| download | minishell-e63d7878ad5d5ad7ceec11e1e8ac79aced93fbc0.tar.gz minishell-e63d7878ad5d5ad7ceec11e1e8ac79aced93fbc0.tar.bz2 minishell-e63d7878ad5d5ad7ceec11e1e8ac79aced93fbc0.zip | |
Fixing pipe zombie children
Diffstat (limited to 'include')
| -rw-r--r-- | include/eval.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/eval.h b/include/eval.h index 89f05ef..3d7436f 100644 --- a/include/eval.h +++ b/include/eval.h @@ -6,7 +6,7 @@ /* By: charles <charles@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:05:30 by charles #+# #+# */ -/* Updated: 2020/09/12 12:28:36 by charles ### ########.fr */ +/* Updated: 2020/09/13 14:20:17 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -49,7 +49,7 @@ extern pid_t g_child_pid; */ int eval_op(int fds[2], t_env env, t_path path, t_ast *ast); -int eval(int fds[2], t_env env, t_path path, t_ast *ast); +int eval(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid); int eval_forked(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid); /* @@ -58,7 +58,7 @@ int eval_forked(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child int fork_wrap(int fds[2], void *passed, int (*wrapped)(void *param), pid_t *child_pid); int fork_wrap_wait(int fds[2], void *passed, int (*wrapped)(void *param)); -int eval_cmd(int fds[2], t_env env, t_path path, t_ast *ast); +int eval_cmd(int fds[2], t_env env, t_path path, t_ast *ast, pid_t *child_pid); /* ** redir.c |
