here doc sigint

This commit is contained in:
2024-03-25 19:15:34 +01:00
parent 6ffeebf87b
commit 50dd393b36
4 changed files with 48 additions and 10 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/07 14:12:49 by tomoron #+# #+# */
/* Updated: 2024/03/25 13:49:08 by marde-vr ### ########.fr */
/* Updated: 2024/03/25 19:01:25 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -89,7 +89,7 @@ void exec_commands(t_msh *msh)
waitpid(msh->pids[i], &status, 0);
i++;
}
if(!g_return_code)
if(!g_return_code && WIFEXITED(status))
g_return_code = WEXITSTATUS(status);
i = 0;
while (i < cmd_count)