en cours de gestion des signaux dans heredoc

This commit is contained in:
hugogogo
2021-11-18 13:29:57 +01:00
parent e715c09de1
commit c11c61ec5e
6 changed files with 43 additions and 9 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/16 22:29:01 by lperrey ### ########.fr */
/* Updated: 2021/11/18 13:17:19 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -56,7 +56,10 @@ static int here_doc_write(char *delimiter, int doc_fd)
{
char *line;
size_t line_count;
struct sigaction signal_action;
signal_action.sa_handler = sigint_handler_heredoc;
sigaction(SIGINT, &signal_action, NULL);
line_count = 0;
while (1)
{