aboutsummaryrefslogtreecommitdiff
path: root/src/interpreter.c
diff options
context:
space:
mode:
authorDominik Kaiser2025-01-15 18:15:16 +0100
committerDominik Kaiser2025-01-15 18:15:16 +0100
commit29932bf9401f511cfa4b2fbb183bb174ecf13c24 (patch)
treefcb9af9d5fb8bb587dcd5091f405c555120f1093 /src/interpreter.c
parent348f46d8ad351f83821831ec997fec91aee43d5c (diff)
downloadminishell-29932bf9401f511cfa4b2fbb183bb174ecf13c24.tar.gz
minishell-29932bf9401f511cfa4b2fbb183bb174ecf13c24.zip
Fix waiting errors
Diffstat (limited to 'src/interpreter.c')
-rw-r--r--src/interpreter.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/interpreter.c b/src/interpreter.c
index a1d3823..0a6d781 100644
--- a/src/interpreter.c
+++ b/src/interpreter.c
@@ -6,7 +6,7 @@
/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/17 19:15:49 by chuhlig #+# #+# */
-/* Updated: 2025/01/14 19:52:27 by chuhlig ### ########.fr */
+/* Updated: 2025/01/15 18:10:25 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -77,7 +77,6 @@ int eval_rec(t_node *node, t_env **env, int in_fd)
pid_t pid;
int p[2];
int result;
- int status;
int original_stdin;
if (node->type == PIPE_NODE)
@@ -98,7 +97,6 @@ int eval_rec(t_node *node, t_env **env, int in_fd)
original_stdin = dup(STDIN_FILENO);
dup2(p[0], STDIN_FILENO);
result = eval_rec(node->content.pipe.right, env, p[0]);
- waitpid(pid, &status, 0);
dup2(original_stdin, STDIN_FILENO);
close(original_stdin);
}