diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-07 15:09:31 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-07 15:09:31 +0200 |
commit | 85e83d4179e0a0e4d7c07aff750cab9478e461b9 (patch) | |
tree | 1eb28924de62c9348259b9012b8606d67008ad83 /src/b_exit.c | |
parent | Old style rewrite in progress (diff) | |
download | 42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.gz 42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.bz2 42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.xz 42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.tar.zst 42-minishell-85e83d4179e0a0e4d7c07aff750cab9478e461b9.zip |
Forked builtins
Diffstat (limited to '')
-rw-r--r-- | src/b_exit.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/b_exit.c b/src/b_exit.c index 5384d25..8e912a6 100644 --- a/src/b_exit.c +++ b/src/b_exit.c @@ -23,7 +23,7 @@ uint8_t b_exit(char *args[], - t_msh *msh) + t_msh *msh) { uint8_t ret; const uint64_t argc = u_builtins_get_argc((const char**)args); @@ -41,8 +41,5 @@ uint8_t else ret = msh->ret; ft_dprintf(STDERR_FILENO, "exit\n"); - lcom_clear(&msh->curr); - s_destroy(msh); - exit(ret); - return (0); + return (ret); } |