Support for multiple IP on DNS

This commit is contained in:
Nicolas Viennot
2013-07-22 17:06:28 -04:00
parent 2e3661a0f6
commit 36bfa71b78
9 changed files with 254 additions and 68 deletions

View File

@ -73,3 +73,17 @@ void tmate_print_trace(void)
free (strings);
}
static void handle_sigsegv(int sig)
{
/* TODO send stack trace to server */
tmate_info("CRASH, printing stack trace");
tmate_print_trace();
tmate_fatal("CRASHED");
}
void tmate_catch_sigsegv(void)
{
signal(SIGSEGV, handle_sigsegv);
}