Oktosha / codam-minishell

Minishell project at Codam (School 42)
The Unlicense
0 stars 0 forks source link

feat: Exec #30

Open Oktosha opened 1 year ago

Oktosha commented 1 year ago

Better exec:

proper return codes

Oktosha commented 1 year ago

Valgrind behaves weirdly probably due to unclosed pipes. Every forked child receives all the pipes of the parent via fork but interacts only with the 2 file descriptors passed to l_ex_fork. A good child must close all the pipes it doesn't use.

Oktosha commented 1 year ago

Add dup2 error handling