diff --git a/minishell.c b/minishell.c index 23292c2..8cfe659 100644 --- a/minishell.c +++ b/minishell.c @@ -6,7 +6,7 @@ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/05/02 12:14:09 by narnaud #+# #+# */ -/* Updated: 2022/05/05 10:04:02 by narnaud ### ########.fr */ +/* Updated: 2022/05/05 11:10:24 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ @@ -47,8 +47,11 @@ int caller(t_datas *datas, t_command *cmd) datas->exit_code = WTERMSIG(status); if (datas->exit_code == 3) printf("Quit: 3\n"); + if (datas->exit_code == 9) + printf("Kill: 15\n"); + if (datas->exit_code == 15) + printf("Terminated: 15\n"); } - if (cmd->fd[0]) close(cmd->fd[0]); return (1);