Browse Source

new: sig 9 and 15 display

master
narnaud 3 years ago
parent
commit
6f73aec567
  1. 7
      minishell.c

7
minishell.c

@ -6,7 +6,7 @@
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);

Loading…
Cancel
Save