This commit is contained in:
mdev9
2024-04-26 10:54:32 +02:00
parent 40a5533c5f
commit c3a0786da1
10 changed files with 52 additions and 42 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/26 10:34:15 by tomoron ### ########.fr */
/* Updated: 2024/04/26 10:53:49 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
@ -73,7 +73,7 @@ int exec(t_msh *msh, char **cmd_args, int i, int cmd_count)
void exec_command(t_msh *msh, int i, int cmd_count)
{
g_return_code = 0;
if(msh->out_fd != -1 && msh->in_fd != -1)
if (msh->out_fd != -1 && msh->in_fd != -1)
{
msh->fds[i] = ft_calloc(2, sizeof(int *));
if (!msh->fds[i])
@ -111,7 +111,6 @@ void end_execution(t_msh *msh, int cmd_count)
free(msh->fds);
signal(SIGINT, signal_handler_interactive);
signal(SIGQUIT, signal_handler_interactive);
//set_echoctl(0);
}
void exec_commands(t_msh *msh)