fix: change sigint to sigdef
This commit is contained in:
parent
425fbd15cd
commit
37bd3efc98
@ -6,7 +6,7 @@
|
||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/02/21 12:45:16 by cchauvet #+# #+# */
|
||||
/* Updated: 2023/04/07 10:54:52 by alouis-j ### ########.fr */
|
||||
/* Updated: 2023/04/14 12:41:02 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -52,6 +52,7 @@ static bool ft_executor(t_data *data, t_cmd *cmd, char **env)
|
||||
{
|
||||
signal(SIGQUIT, SIG_DFL);
|
||||
signal(SIGKILL, SIG_DFL);
|
||||
signal(SIGINT, SIG_DFL);
|
||||
dup2(cmd->fd_in[0], 0);
|
||||
dup2(cmd->fd_out[0], 1);
|
||||
ft_lstiter(*data->cmds, ft_cmdcloser);
|
||||
|
Loading…
Reference in New Issue
Block a user