diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 13:10:57 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 13:10:57 +0200 |
commit | f6f17ad7b9c2e78981cf661f88a67142435356e8 (patch) | |
tree | 4420b7377c89c3ad149c54c169ef348a7c151ff0 /src | |
parent | Ok but not ok (diff) | |
download | 42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.gz 42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.bz2 42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.xz 42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.tar.zst 42-minishell-f6f17ad7b9c2e78981cf661f88a67142435356e8.zip |
Omg
Diffstat (limited to 'src')
-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 |