mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
(fix) Dealing with signals correctly from the start
This commit is contained in:
parent
5fb054d403
commit
3b5df9ec10
1 changed files with 3 additions and 2 deletions
|
|
@ -3,10 +3,10 @@
|
||||||
/* ::: :::::::: */
|
/* ::: :::::::: */
|
||||||
/* minishell.c :+: :+: :+: */
|
/* minishell.c :+: :+: :+: */
|
||||||
/* +:+ +:+ +:+ */
|
/* +:+ +:+ +:+ */
|
||||||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/02/06 13:44:06 by kcolin #+# #+# */
|
/* 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));
|
ft_bzero(app, sizeof(t_minishell));
|
||||||
app->env = env_from_envp(envp);
|
app->env = env_from_envp(envp);
|
||||||
app->exec = true;
|
app->exec = true;
|
||||||
|
set_interactive_mode_sig_handling();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char *argv[], char **envp)
|
int main(int argc, char *argv[], char **envp)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue