Make the forks close ALL fds except the needed ones
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 30 Aug 2024 15:36:49 +0000 (17:36 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 30 Aug 2024 15:36:49 +0000 (17:36 +0200)
commit4c45343b2c5af1d99b109c9ae07ec8409c4fbf9b
treebcacd4ced8d481b00e7b2ddc8b06634e69625faa
parentdf2cecec0b451c832f69d5fa91bd41c2af2e1ee2
Make the forks close ALL fds except the needed ones

The recorsive (non-forking) ex_pipeline creates pipes that are inherited
by forked processes. These processes only need the latest opened pipe so
for the healt of other commands the other pipes should be closed.
inc/minishell_structs.h
src/env.c
src/execution.c