Allow execve to run
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 1 Aug 2024 11:48:15 +0000 (13:48 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 1 Aug 2024 11:48:15 +0000 (13:48 +0200)
This is done to test the implementation so far. Piping, redirections
and proper environment variables passing has to e implemented.

src/execution.c

index fbaae4b0a0377b9ca31f8eeec0293d319b5981e2..428d66a61e42204799bf72a8c656f098c3b1ed6d 100644 (file)
@@ -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);