summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ft_e_externs.c7
-rw-r--r--src/ft_e_pipes.c3
2 files changed, 4 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
diff --git a/src/ft_e_pipes.c b/src/ft_e_pipes.c
index 81c8a08..2ac4bb6 100644
--- a/src/ft_e_pipes.c
+++ b/src/ft_e_pipes.c
@@ -11,6 +11,8 @@
/* ************************************************************************** */
#include <libft.h>
+#include <stdint.h>
+#include <unistd.h>
#include "ft_e_builtins.h"
#include "ft_e_externs.h"
@@ -37,6 +39,7 @@ void
t_msh *msh)
{
uint8_t bu_id;
+ /* int32_t pipefd[2]; */
if ((bu_id = ft_get_builtin_id(ptr->pipes->one->com, msh))
< FT_BUILTINS_COUNT)