fix: non nuiltins is now startable

This commit is contained in:
Camille Chauvet
2023-03-10 13:34:23 +01:00
parent 1a4ed128e7
commit 087a96e54b
7 changed files with 20 additions and 21 deletions

View File

@ -31,14 +31,3 @@ void ft_cmddel(void *ptr)
close(content->fd_out[1]);
free(content);
}
void ft_cmd_waiter(void *ptr)
{
t_cmd *cmd;
cmd = ptr;
if (cmd->pid != -1)
{
waitpid(cmd->pid, ft_get_exit_code(), 0);
}
}

View File

@ -14,6 +14,5 @@ typedef struct s_cmd
} t_cmd;
void ft_cmddel(void *content);
void ft_cmd_waiter(void *content);
#endif