mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-11 23:18:46 +02:00
「✨」 feat(builtins/ft_exit): ft_exit is there ! :D
This commit is contained in:
@ -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