mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Also add crash info on SIGABRT
This commit is contained in:
parent
0272757aa5
commit
1600a81e58
1 changed files with 3 additions and 2 deletions
|
|
@ -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 */
|
||||
tmate_info("CRASH, printing stack trace");
|
||||
|
|
@ -95,6 +95,7 @@ static void handle_sigsegv(__unused int sig)
|
|||
|
||||
void tmate_catch_sigsegv(void)
|
||||
{
|
||||
signal(SIGSEGV, handle_sigsegv);
|
||||
signal(SIGSEGV, handle_crash);
|
||||
signal(SIGABRT, handle_crash);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue