62 waitpid(left_pid, NULL, 0);
void shell_error(char *cmd, char *arg, char *msg)
int execute_pipe(t_shell *shell, t_ast *node)
Pipe node'unu çalıştır Her iki taraf da child process'te çalışır.
void close_pipe(int *pipefd)
Pipe fd'lerini kapat.
static int fork_process(pid_t *pid, int *pipefd)
void pipe_left_child(t_shell *shell, t_ast *node, int *pipefd)
Pipe'ın sol tarafını çalıştır.
int wait_pipe(pid_t left_pid, pid_t right_pid)
İki child'ı bekle, sağ tarafın exit status'unu döndür.
void pipe_right_child(t_shell *shell, t_ast *node, int *pipefd)
Pipe'ın sağ tarafını çalıştır.
Minishell ana header dosyası