Commit 75ac9886 authored by vysheng's avatar vysheng

Update main.c

parent 57772688
......@@ -435,14 +435,14 @@ void print_backtrace (void) {
void sig_segv_handler (int signum __attribute__ ((unused))) {
set_terminal_attributes ();
write (1, "SIGSEGV received\n", 18);
(void) write (1, "SIGSEGV received\n", 18);
print_backtrace ();
exit (EXIT_FAILURE);
}
void sig_abrt_handler (int signum __attribute__ ((unused))) {
set_terminal_attributes ();
write (1, "SIGABRT received\n", 18);
(void) write (1, "SIGABRT received\n", 18);
print_backtrace ();
exit (EXIT_FAILURE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment