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;