AAAAAAAAAAA

This commit is contained in:
2024-05-06 15:23:30 +02:00
parent 444b84c541
commit 923da71a49
6 changed files with 20 additions and 14 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:19:26 by marde-vr #+# #+# */
/* Updated: 2024/04/30 14:03:28 by marde-vr ### ########.fr */
/* Updated: 2024/05/06 15:17:37 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -74,10 +74,12 @@ int file_access(t_msh *msh, int *found)
return (1);
}
void close_all_pipes(t_msh *msh, int cmd_count, int i)
void close_all_pipes(t_msh *msh)
{
int i;
i = 0;
while (i < cmd_count)
while (msh->fds[i])
{
close_pipe_fds(msh, i);
i++;