fix: signal and \t

This commit is contained in:
Camille Chauvet
2023-04-07 11:09:59 +00:00
parent 5d482fc65a
commit 8a2eb85dc6
2 changed files with 5 additions and 4 deletions

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/21 12:45:16 by cchauvet #+# #+# */
/* Updated: 2023/04/05 15:13:33 by alouis-j ### ########.fr */
/* Updated: 2023/04/07 10:54:52 by alouis-j ### ########.fr */
/* */
/* ************************************************************************** */
@ -50,7 +50,8 @@ static bool ft_executor(t_data *data, t_cmd *cmd, char **env)
return (1);
if (cmd->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);