updated todo_list

This commit is contained in:
mdev9
2024-04-24 19:07:28 +02:00
parent 93e4d43283
commit 080f05d4f7
4 changed files with 8 additions and 12 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */
/* Updated: 2024/04/24 15:22:20 by tomoron ### ########.fr */
/* Updated: 2024/04/24 18:55:58 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -116,7 +116,10 @@ void exec_commands(t_msh *msh)
int i;
if (!msh->tokens && !is_parenthesis(msh->cmds))
{
g_return_code = 0;
return ;
}
cmd_count = get_cmd_count(msh->cmds);
msh->fds = ft_calloc(cmd_count + 1, sizeof(int **));
msh->pids = ft_calloc(cmd_count, sizeof(int *));