mirror of
https://github.com/tmate-io/tmate.git
synced 2025-01-09 15:38:16 +01:00
Also add crash info on SIGABRT
This commit is contained in:
parent
0272757aa5
commit
1600a81e58
@ -85,7 +85,7 @@ void tmate_print_stack_trace(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void handle_sigsegv(__unused int sig)
|
static void handle_crash(__unused int sig)
|
||||||
{
|
{
|
||||||
/* TODO send stack trace to server */
|
/* TODO send stack trace to server */
|
||||||
tmate_info("CRASH, printing stack trace");
|
tmate_info("CRASH, printing stack trace");
|
||||||
@ -95,6 +95,7 @@ static void handle_sigsegv(__unused int sig)
|
|||||||
|
|
||||||
void tmate_catch_sigsegv(void)
|
void tmate_catch_sigsegv(void)
|
||||||
{
|
{
|
||||||
signal(SIGSEGV, handle_sigsegv);
|
signal(SIGSEGV, handle_crash);
|
||||||
|
signal(SIGABRT, handle_crash);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user