From 456ea302cb8282f52403973893d8359d9f1f0717 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 11 May 2020 16:06:45 +0200 Subject: Removed bloat --- src/ft_e_externs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/ft_e_externs.c') diff --git a/src/ft_e_externs.c b/src/ft_e_externs.c index 07bd9e1..9302d18 100644 --- a/src/ft_e_externs.c +++ b/src/ft_e_externs.c @@ -27,14 +27,9 @@ static void t_lcom *ptr, t_msh *msh) { - int32_t ret; - ft_dup_redirs(ptr, msh); - ret = execve(fullpath, ptr->argv, msh->envp); + execve(fullpath, ptr->argv, msh->envp); /* TODO: handle execve failed */ - ft_lcom_clear(&msh->curr); - ft_s_destroy(msh); - exit(ret); } static void -- cgit v1.2.3