Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/invoke_cmd/exec_pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: dayano <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/21 13:14:15 by dayano #+# #+# */
/* Updated: 2025/05/05 17:33:50 by dayano ### ########.fr */
/* Updated: 2025/05/09 16:39:00 by dayano ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -67,7 +67,8 @@ static pid_t _fork_command(t_cmd *cmd, t_cmd *cmd_head, t_pipe_io *pipefds,
_setup_stdout(cmd, pipefds->curr_fds);
_setup_process_signals(SIG_DFL);
if ((cmd->next != NULL) && is_redirect(cmd->next))
redirect(cmd->next);
if(!redirect(cmd->next))
exit(EXIT_FAILURE);
if (is_builtin(cmd))
exit(execute_builtin(cmd, minish));
execute_cmd(cmd, minish);
Expand Down
Loading