maxishell
Implementation of a shell for Linux-like systems
|
#include "shell.h"
#include <unistd.h>
#include "libft.h"
#include "execute.h"
#include <stdio.h>
#include <sys/wait.h>
#include "pipe.h"
Go to the source code of this file.
Functions | |
int | builtin_pipe (t_ast *node, t_ms_data *data) |
pid_t | execute_child (t_ast *node, t_ms_data *data, int fd[2], int direction) |
execute child process in the pipe context | |
static int | setup_pipe_processes (t_ast *node, t_ms_data *data, pid_t *pid_1, pid_t *pid_2) |
Definition at line 46 of file pipe.c.
References ft_perror(), setup_pipe_processes(), and WAIT_NEXT_COMMAND.
Referenced by builtin_pipe_test(), and execute_ast().
execute child process in the pipe context
--
node | current node in the AST |
data | minishell structure data |
fd | file descriptors |
direction | direction of the pipe if 0 - node_left, if 1 - node_right |
Definition at line 79 of file pipe.c.
References close_fds(), execute_ast(), and ft_perror().
Referenced by setup_pipe_processes().
|
static |
Definition at line 25 of file pipe.c.
References close_fds(), execute_child(), EXIT_SUCCESS, ft_perror(), s_ast::left, s_ast::right, s_ms_data::std_in, and WAIT_NEXT_COMMAND.
Referenced by builtin_pipe().