fix(sig): incorrect handling of C-\

Closes #197
This commit is contained in:
Khaïs COLIN 2025-05-02 12:21:05 +02:00
parent 52c33abb16
commit b7e48cca05
3 changed files with 14 additions and 10 deletions

View file

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* sig.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jguelen <marvin@42.fr> +#+ +:+ +#+ */
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/20 10:26:05 by jguelen #+# #+# */
/* Updated: 2025/04/17 12:05:07 by kcolin ### ########.fr */
/* Created: 2025/05/02 12:16:37 by kcolin #+# #+# */
/* Updated: 2025/05/02 12:18:17 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
@ -38,6 +38,7 @@ int set_interactive_mode_sig_handling(void)
return (-1);
if (sigaction(SIGINT, &sig_act, NULL) == -1)
return (-1);
sig_act.sa_handler = SIG_IGN;
if (sigaction(SIGQUIT, &sig_act, NULL) == -1)
return (-1);
return (0);