diff options
Diffstat (limited to 'src/ft_e_lcom.c')
-rw-r--r-- | src/ft_e_lcom.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |