Commit ba81bfe6 authored by abenoit's avatar abenoit
Browse files

workaround

parent f340933c
......@@ -55,10 +55,10 @@ int parent_pipe_end(t_command *cur_command, t_xe *xe, int fd_in, int proc)
if (dup2(fd_in, STDIN_FILENO) != -1)
close(fd_in);
}
dup2(xe->backup_stdout, STDOUT_FILENO);
ret = execute_cmd(cur_command->args, cur_command->redir_paths, cur_command->redir_types, xe);// error
tmp = xe->stat_loc;
free_command(cur_command);
dup2(xe->backup_stdout, STDOUT_FILENO);
dup2(xe->backup_stdin, STDIN_FILENO);
i = 0;
while (i < proc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment