Skip to content

Commit

Permalink
Update redirections.c
Browse files Browse the repository at this point in the history
  • Loading branch information
izzypt authored Aug 14, 2023
1 parent e06c9e4 commit 49341eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions executor/redirections.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ void append_to_fd(t_list *node)
close(outfile);
cmd_exit(ft_itoa(errno), 0);
}
waitpid(pid, &status, 0);
close(outfile);
if (WIFEXITED(status))
get_data()->exit = WEXITSTATUS(status);
Expand Down

0 comments on commit 49341eb

Please sign in to comment.