Updated Grammar

This commit is contained in:
Maieul BOYER 2024-07-22 13:09:51 +02:00
parent f4ccb91db4
commit 9a6a1885e4
No known key found for this signature in database
974 changed files with 83363 additions and 84138 deletions

View file

@ -6,27 +6,17 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/02 13:22:14 by maiboyer #+# #+# */
/* Updated: 2024/07/20 14:22:33 by maiboyer ### ########.fr */
/* Updated: 2024/07/22 12:30:50 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
#include "app/signal_handler.h"
#include "me/fs/fs.h"
#include "me/printf/printf.h"
#include "me/types.h"
#include "signal.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
void sigsegv_handle(int sig)
{
(void)(sig);
me_eprintf("Abort: SEGFAULT!!!\n");
print_trace();
exit(139);
}
t_error install_signal(void)
{
struct sigaction data;
@ -37,6 +27,5 @@ t_error install_signal(void)
return (ERROR);
if (sigaction(SIGQUIT, &data, NULL))
return (ERROR);
me_eprintf("Installed Signals\n");
return (NO_ERROR);
}