fix: signal double prompt

This commit is contained in:
Camille Chauvet
2023-04-17 10:41:54 +00:00
parent 882a39fc94
commit 2f6daa4ce5
3 changed files with 11 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/14 13:04:01 by cchauvet ### ########.fr */
/* Updated: 2023/04/14 17:17:16 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -58,6 +58,8 @@ static bool ft_executor(t_data *data, t_cmd *cmd, char **env)
execve(cmd->executable, cmd->args, env);
return (1);
}
signal(SIGQUIT, SIG_IGN);
signal(SIGINT, SIG_IGN);
return (0);
}