|
@ -6,7 +6,7 @@ |
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */ |
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */ |
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
/* Created: 2022/05/02 12:14:09 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); |
|
|
datas->exit_code = WTERMSIG(status); |
|
|
if (datas->exit_code == 3) |
|
|
if (datas->exit_code == 3) |
|
|
printf("Quit: 3\n"); |
|
|
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]) |
|
|
if (cmd->fd[0]) |
|
|
close(cmd->fd[0]); |
|
|
close(cmd->fd[0]); |
|
|
return (1); |
|
|
return (1); |
|
|