mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2026-10-16 03:10:07 +02:00
「✨」 feat(builtins/ft_exit): ft_exit is there ! :D
This commit is contained in:
1 parent
bd49fa19a1
commit
891a43dbbb
2 files changed
+45
-21
No files matched your search
@@ -6,7 +6,7 @@
|
||||
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/09 19:25:18 by adjoly #+# #+# */
|
||||
/* Updated: 2024/07/15 14:04:23 by mmoussou ### ########.fr */
|
||||
/* Updated: 2024/07/15 14:45:09 by mmoussou ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -48,9 +48,9 @@ void print_return_value(int return_code)
|
||||
{
|
||||
code = WTERMSIG(return_code);
|
||||
get_exit_code(128 + code);
|
||||
if (WCOREDUMP(return_code))
|
||||
if (WCOREDUMP(return_code) && sigmsg[code])
|
||||
printf("minishell : %s %s\n", sigmsg[code], ERROR_COREDUMP);
|
||||
else
|
||||
else if (sigmsg[code])
|
||||
printf("minishell : %s\n", sigmsg[code]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user