From f6f17ad7b9c2e78981cf661f88a67142435356e8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 23 Apr 2020 13:10:57 +0200 Subject: Omg --- src/ft_e_lcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 8cb4879..5bffe0a 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -62,7 +62,7 @@ uint8_t close(write_fd); } msh->ret = msh->bu_ptr[bu_id](ptr->args, msh); - kill(pid, SIGTERM); + exit(msh->ret); } else if (pid < 0) { @@ -74,6 +74,7 @@ uint8_t { /* TODO: fix this syntax */ } + msh->ret = status; } } else -- cgit v1.2.3