From b27ba79079e738c67acb19e7190810c643e49491 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Thu, 1 Aug 2024 13:48:15 +0200 Subject: [PATCH] Allow execve to run This is done to test the implementation so far. Piping, redirections and proper environment variables passing has to e implemented. --- src/execution.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/execution.c b/src/execution.c index fbaae4b..428d66a 100644 --- a/src/execution.c +++ b/src/execution.c @@ -688,8 +688,7 @@ int ex_fields(char **fields, t_vec *assignments, const t_vec *redirections, t_ex path = find_exe(fields[0], env); if (!path) return (1); - pid = -1; - //pid = fork(); + pid = fork(); if (pid == 0) { dup_pipes(env); -- 2.30.2