modifs avec luke
This commit is contained in:
Submodule minishell_tests updated: 71beb2eeb7...918efaf73c
@@ -6,7 +6,7 @@
|
|||||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2021/11/11 18:46:43 by lperrey #+# #+# */
|
/* Created: 2021/11/11 18:46:43 by lperrey #+# #+# */
|
||||||
/* Updated: 2021/12/16 14:49:53 by hulamy ### ########.fr */
|
/* Updated: 2021/12/17 22:09:51 by hulamy ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */
|
/* 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);
|
ft_bzero(&signal_behaviour, sizeof signal_behaviour);
|
||||||
signal_behaviour.sa_handler = sigint_handler_interactive;
|
signal_behaviour.sa_handler = sigint_handler_interactive;
|
||||||
sigaction(SIGINT, &signal_behaviour, NULL);
|
sigaction(SIGINT, &signal_behaviour, NULL);
|
||||||
|
rl_event_hook = NULL;
|
||||||
line_input = readline(prompt);
|
line_input = readline(prompt);
|
||||||
signal_behaviour.sa_handler = SIG_IGN;
|
signal_behaviour.sa_handler = SIG_IGN;
|
||||||
sigaction(SIGINT, &signal_behaviour, NULL);
|
sigaction(SIGINT, &signal_behaviour, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user