/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* signal_handler.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: maiboyer +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/05/02 13:22:14 by maiboyer #+# #+# */ /* Updated: 2024/08/03 16:34:19 by maiboyer ### ########.fr */ /* */ /* ************************************************************************** */ #include "app/signal_handler.h" #include "me/types.h" #include "signal.h" #include #include #include t_error install_signal(void) { struct sigaction data; data = (struct sigaction){}; data.sa_handler = SIG_IGN; if (sigaction(SIGINT, &data, NULL)) return (ERROR); if (sigaction(SIGQUIT, &data, NULL)) return (ERROR); return (NO_ERROR); }