TR-42 / minishell

https://tr-42.github.io/minishell/
0 stars 0 forks source link

次に渡した宛先パイプ口が子プロセスで閉じていないバグを修正 #82

Closed TetsuOtter closed 1 year ago

TetsuOtter commented 1 year ago

なお、exit statusが130になるバグは #79 により修正される

(#79 merge後)

tetsu@TRs-MacBook-Pro:~/ftgit/minishell% bash -c 'cat|cat|ls'
Doxyfile    a.o     headers     minishell   srcs
Makefile    a.out       libft       obj     tmp

tetsu@TRs-MacBook-Pro:~/ftgit/minishell% echo $?
0
tetsu@TRs-MacBook-Pro:~/ftgit/minishell% ./minishell -c 'cat|cat|ls'
Doxyfile    a.o     headers     minishell   srcs
Makefile    a.out       libft       obj     tmp

minishell: [93894]: SIGPIPE (13)
minishell: [93895]: SIGPIPE (13)
tetsu@TRs-MacBook-Pro:~/ftgit/minishell% echo $?
0
tetsu@TRs-MacBook-Pro:~/ftgit/minishell%