From 8a2eb85dc61635387a6a82b4af78539cb81fa03d Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Fri, 7 Apr 2023 11:09:59 +0000 Subject: [PATCH] fix: signal and \t --- execution/execution.c | 5 +++-- syntax/syntax.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/execution/execution.c b/execution/execution.c index c8c5003..7cb334a 100644 --- a/execution/execution.c +++ b/execution/execution.c @@ -6,7 +6,7 @@ /* By: cchauvet pid == 0) { - signal(SIGQUIT, ft_quit); + signal(SIGQUIT, SIG_DFL); + signal(SIGKILL, SIG_DFL); dup2(cmd->fd_in[0], 0); dup2(cmd->fd_out[0], 1); ft_lstiter(*data->cmds, ft_cmdcloser); diff --git a/syntax/syntax.c b/syntax/syntax.c index 32d0d5e..a786bb5 100644 --- a/syntax/syntax.c +++ b/syntax/syntax.c @@ -6,7 +6,7 @@ /* By: cchauvet