From 85e83d4179e0a0e4d7c07aff750cab9478e461b9 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 7 Aug 2020 15:09:31 +0200 Subject: Forked builtins --- src/b_exit.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/b_exit.c') 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); } -- cgit v1.2.3