diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-11 16:06:45 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-05-11 16:06:45 +0200 |
commit | 456ea302cb8282f52403973893d8359d9f1f0717 (patch) | |
tree | 6d25c8db8f9ea7f49974955449ac58c1506c57be /src/ft_e_externs.c | |
parent | New files (diff) | |
download | 42-minishell-456ea302cb8282f52403973893d8359d9f1f0717.tar.gz 42-minishell-456ea302cb8282f52403973893d8359d9f1f0717.tar.bz2 42-minishell-456ea302cb8282f52403973893d8359d9f1f0717.tar.xz 42-minishell-456ea302cb8282f52403973893d8359d9f1f0717.tar.zst 42-minishell-456ea302cb8282f52403973893d8359d9f1f0717.zip |
Removed bloat
Diffstat (limited to '')
-rw-r--r-- | src/ft_e_externs.c | 7 |
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 |