stop quand here_doc fail

This commit is contained in:
2024-04-26 10:36:57 +02:00
parent 6de6904a67
commit 390937d195
6 changed files with 9 additions and 7 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/02 21:59:20 by tomoron #+# #+# */
/* Updated: 2024/04/25 18:38:02 by tomoron ### ########.fr */
/* Updated: 2024/04/26 10:24:46 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -98,6 +98,7 @@ int init_minishell(t_msh **msh, int argc, char **argv, char **envp)
(*msh)->env = get_env(envp);
(*msh)->env = add_shlvl((*msh)->env);
rl_catch_signals = 0;
g_return_code = 0;
signal(SIGINT, signal_handler_interactive);
signal(SIGQUIT, signal_handler_interactive);
return (0);