ajout d'un indicateur pour ne pas fermer le file descripto du fichier, mauvaise idee il faut le rouvrir je pense

This commit is contained in:
hugogogo
2021-10-20 00:15:50 +02:00
parent 4d812cd346
commit f2c8898fcc
4 changed files with 14 additions and 10 deletions

View File

@@ -30,6 +30,7 @@ void exec_cmd(char **envp, t_list *cmd_list)
{
if (cmd->fd_in != 0)
close(cmd->fd_in);
// if (cmd->fd_out != 1 && cmd->fd_redirect == 1)
if (cmd->fd_out != 1)
close(cmd->fd_out);
}