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

@@ -44,6 +44,7 @@ void exec_pchild(int *pipes, int index, t_ast_n *pcmd, int cmds)
dup2(pipes[1], STDOUT_FILENO);
close(pipes[0]);
close(pipes[1]);
pcmd->sh = true;
if (handle_redir(pcmd))
{
free_child(pcmd->msh);