summaryrefslogtreecommitdiffstats
path: root/src/ft_e_externs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_e_externs.c')
-rw-r--r--src/ft_e_externs.c7
1 files changed, 1 insertions, 6 deletions
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