summaryrefslogtreecommitdiffstats
path: root/src/e_externs.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-18 18:11:04 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-18 18:11:04 +0200
commit6baf8c11080bc73f4a55b770c2adde9536bc513c (patch)
treecd798337112f78c414a7d370511a8bc78ffc9e5b /src/e_externs.c
parentHandled execve fail (diff)
download42-minishell-6baf8c11080bc73f4a55b770c2adde9536bc513c.tar.gz
42-minishell-6baf8c11080bc73f4a55b770c2adde9536bc513c.tar.bz2
42-minishell-6baf8c11080bc73f4a55b770c2adde9536bc513c.tar.xz
42-minishell-6baf8c11080bc73f4a55b770c2adde9536bc513c.tar.zst
42-minishell-6baf8c11080bc73f4a55b770c2adde9536bc513c.zip
HUGE pain in the ass finally over
Diffstat (limited to '')
-rw-r--r--src/e_externs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/e_externs.c b/src/e_externs.c
index ce0d41d..9e2f8f4 100644
--- a/src/e_externs.c
+++ b/src/e_externs.c
@@ -25,6 +25,7 @@
#include "s_destroy.h"
#include "s_line.h"
#include "s_struct.h"
+#include "u_utils.h"
static void
e_extern_child(const char *fullpath,
@@ -36,6 +37,7 @@ static void
{
f_exec(fullpath);
ft_memdel((void*)&fullpath);
+ u_eof_stdin();
s_line_clear(&msh->curr);
s_destroy(msh);
exit(errno);