update: trying to debug funcheck hanging

This commit is contained in:
Maieul BOYER 2024-09-11 18:11:48 +02:00
parent b264fae51a
commit d1aea1408a
No known key found for this signature in database
2 changed files with 12 additions and 5 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/02 13:22:14 by maiboyer #+# #+# */
/* Updated: 2024/08/03 16:34:19 by maiboyer ### ########.fr */
/* Updated: 2024/09/11 17:59:17 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,6 +17,12 @@
#include <stdio.h>
#include <stdlib.h>
static void sig_print_trace(int _idk)
{
(void)(_idk);
print_trace();
}
t_error install_signal(void)
{
struct sigaction data;
@ -27,5 +33,6 @@ t_error install_signal(void)
return (ERROR);
if (sigaction(SIGQUIT, &data, NULL))
return (ERROR);
signal(SIGUSR1, sig_print_trace);
return (NO_ERROR);
}