test unitaire avance

This commit is contained in:
hugogogo
2021-12-02 15:29:16 +01:00
parent 6a077174bc
commit 116276b0a2
3 changed files with 124 additions and 21 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/11 18:46:43 by lperrey #+# #+# */
/* Updated: 2021/11/25 22:21:16 by hulamy ### ########.fr */
/* Updated: 2021/11/26 15:03:37 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -82,8 +82,8 @@ static int here_doc_write(char *delimiter, int doc_fd)
signal_action.sa_handler = sigint_handler_heredoc;
sigaction(SIGINT, &signal_action, NULL);
switch_heredoc_sigint = 0;
//rl_event_hook = void_func_return_readline;
rl_signal_event_hook = void_func_return_readline;
rl_event_hook = void_func_return_readline;
//rl_signal_event_hook = void_func_return_readline;
line_count = 0;
while (1)
{
@@ -114,6 +114,8 @@ static int here_doc_write(char *delimiter, int doc_fd)
free(line);
}
free(line);
signal_action.sa_handler = SIG_IGN;
sigaction(SIGINT, &signal_action, NULL);
return (1);
}