modifs avec luke

This commit is contained in:
hugogogo
2021-12-18 12:30:12 +01:00
parent 8d6d5514d8
commit 01bbec2774
3 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */
/* Updated: 2021/12/10 10:23:40 by hulamy ### ########.fr */
/* Updated: 2021/12/17 22:11:26 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -48,6 +48,7 @@ static char *read_input(char *prompt, t_all *c)
ft_bzero(&signal_behaviour, sizeof signal_behaviour);
signal_behaviour.sa_handler = sigint_handler_interactive;
sigaction(SIGINT, &signal_behaviour, NULL);
rl_event_hook = NULL;
line_input = readline(prompt);
signal_behaviour.sa_handler = SIG_IGN;
sigaction(SIGINT, &signal_behaviour, NULL);