projects
/
42
/
minishell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3e8bf0
)
Allow execve to run
author
Lukas Jiriste
<ljiriste@student.42prague.com>
Thu, 1 Aug 2024 11:48:15 +0000
(13:48 +0200)
committer
Lukas 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
patch
|
blob
|
history
diff --git
a/src/execution.c
b/src/execution.c
index fbaae4b0a0377b9ca31f8eeec0293d319b5981e2..428d66a61e42204799bf72a8c656f098c3b1ed6d 100644
(file)
--- 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);