diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-07 13:49:10 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-07 13:49:10 +0200 |
commit | 9666a0a0ef6f5a4fb30bac93797d0f029ad8294a (patch) | |
tree | a09f917723ae3a0dfeaef025b5e9a76e2c8602f2 /src/ft_m_loop.c | |
parent | Preparing the structs (diff) | |
download | 42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.gz 42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.bz2 42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.xz 42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.tar.zst 42-minishell-9666a0a0ef6f5a4fb30bac93797d0f029ad8294a.zip |
Still pipin'
Diffstat (limited to 'src/ft_m_loop.c')
-rw-r--r-- | src/ft_m_loop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c index 0b590a0..e44c85c 100644 --- a/src/ft_m_loop.c +++ b/src/ft_m_loop.c @@ -28,9 +28,9 @@ static char { size_t i; size_t j; - char *dst; size_t size1; size_t size2; + char *dst; i = -1; j = -1; @@ -87,8 +87,11 @@ uint8_t char *line; char *quote; int8_t gnl; + int32_t pipefd[2]; gnl = 1; + pipefd[0] = STDOUT_FILENO; + pipefd[1] = STDIN_FILENO; while (gnl > 0) { ft_m_prompt(msh); |