fix: signal gestion
This commit is contained in:
parent
37bd3efc98
commit
058c96849b
@ -6,7 +6,7 @@
|
|||||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/02/21 12:45:16 by cchauvet #+# #+# */
|
/* Created: 2023/02/21 12:45:16 by cchauvet #+# #+# */
|
||||||
/* Updated: 2023/04/14 12:41:02 by cchauvet ### ########.fr */
|
/* Updated: 2023/04/14 13:04:01 by cchauvet ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -51,7 +51,6 @@ static bool ft_executor(t_data *data, t_cmd *cmd, char **env)
|
|||||||
if (cmd->pid == 0)
|
if (cmd->pid == 0)
|
||||||
{
|
{
|
||||||
signal(SIGQUIT, SIG_DFL);
|
signal(SIGQUIT, SIG_DFL);
|
||||||
signal(SIGKILL, SIG_DFL);
|
|
||||||
signal(SIGINT, SIG_DFL);
|
signal(SIGINT, SIG_DFL);
|
||||||
dup2(cmd->fd_in[0], 0);
|
dup2(cmd->fd_in[0], 0);
|
||||||
dup2(cmd->fd_out[0], 1);
|
dup2(cmd->fd_out[0], 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user