(fix) Dealing with signals correctly from the start

This commit is contained in:
Jérôme Guélen 2025-04-24 14:28:07 +02:00
parent 5fb054d403
commit 3b5df9ec10
No known key found for this signature in database

View file

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* minishell.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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)