small fixes

This commit is contained in:
Loic Deridder
2025-02-18 13:52:56 +01:00
parent f3bf429c07
commit 28b4b0d3bc
5 changed files with 11 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ int exec_shcmd(t_ast_n *node)
pid_t pid;
int status;
status = 0;
if (is_builtin(node->cmd))
return (exec_builtin(node));
else
@@ -92,6 +93,7 @@ int exec_subsh(t_ast_n *node)
pid_t pid;
int ret;
status = 0;
pid = fork();
if (pid == 0)
{