From 3b5df9ec10b425d82ace6ef4bebc0016a8e3fdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gu=C3=A9len?= Date: Thu, 24 Apr 2025 14:28:07 +0200 Subject: [PATCH] (fix) Dealing with signals correctly from the start --- src/minishell.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/minishell.c b/src/minishell.c index 959379e..dc24998 100644 --- a/src/minishell.c +++ b/src/minishell.c @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* minishell.c :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: khais +#+ +:+ +#+ */ +/* By: jguelen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/06 13:44:06 by kcolin #+# #+# */ -/* Updated: 2025/04/17 12:28:29 by khais ### ########.fr */ +/* Updated: 2025/04/24 14:26:57 by jguelen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -69,6 +69,7 @@ static void app_init(t_minishell *app, char **envp) ft_bzero(app, sizeof(t_minishell)); app->env = env_from_envp(envp); app->exec = true; + set_interactive_mode_sig_handling(); } int main(int argc, char *argv[], char **envp)