FjjDessoyCaraballo / minishell

This project aims to replicate bash shell
1 stars 3 forks source link

FIX: pipes work without hanging #38

Closed FjjDessoyCaraballo closed 2 months ago

FjjDessoyCaraballo commented 2 months ago

Two fixes were done in this patch:

  1. Function close_fds() was closing fds that were not being used. Most of the fds are set to 0 by ft_bzero() in the initialization of the program. We can and will be letting fds that were not used to have the value of 0 after executing piped instructions;
  2. Uncommented execution.c:96 (line 96 in execution.c) fixed the hanging process problem. This can close #36 ;
  3. Not a fix, but there is added documentation in execution.c;