From 5cbb6f078dd5c39912995b6cde9306423f6ba902 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 5 Apr 2023 12:20:36 +0200 Subject: [PATCH] fix: put old exit code to ft_exit --- execution/execution.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/execution/execution.c b/execution/execution.c index 334096e..823adc8 100644 --- a/execution/execution.c +++ b/execution/execution.c @@ -6,7 +6,7 @@ /* By: cchauvet fd_out[0], cmd->args + 1)); else { - return_code = ft_exit(cmd->args + 1); + return_code = ft_exit(cmd->args + 1, data->exit_code); if (return_code >= 0) { data->exit_code = return_code;