comparison src/aim.c @ 1820:73bb4244165f

[gaim-migrate @ 1830] this would be good, so that we're not in a big loop when we segfault. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 06 May 2001 11:27:36 +0000
parents f15d449b3167
children 75643b9f4261
comparison
equal deleted inserted replaced
1819:47e064712091 1820:73bb4244165f
386 extern void show_debug(GtkObject *); 386 extern void show_debug(GtkObject *);
387 387
388 #if HAVE_SIGNAL_H 388 #if HAVE_SIGNAL_H
389 void sighandler(int sig) 389 void sighandler(int sig)
390 { 390 {
391 debug_printf("caught signal %d\n", sig);
392 gtkspell_stop();
393 switch (sig) { 391 switch (sig) {
394 case SIGSEGV: 392 case SIGSEGV:
395 fprintf(stderr, "Gaim has segfaulted and attempted to dump a core file.\n" 393 fprintf(stderr, "Gaim has segfaulted and attempted to dump a core file.\n"
396 "Please notify the gaim maintainers by reporting a bug at\n" 394 "Please notify the gaim maintainers by reporting a bug at\n"
397 WEBSITE "\n\n" 395 WEBSITE "\n\n"
400 "how to get the backtrace, please IM either EWarmenhoven or\n" 398 "how to get the backtrace, please IM either EWarmenhoven or\n"
401 "RobFlynn and they can instruct you).\n"); 399 "RobFlynn and they can instruct you).\n");
402 abort(); 400 abort();
403 break; 401 break;
404 default: 402 default:
403 gtkspell_stop();
404 debug_printf("caught signal %d\n", sig);
405 if (gtk_main_level()) 405 if (gtk_main_level())
406 gtk_main_quit(); 406 gtk_main_quit();
407 exit(0); 407 exit(0);
408 } 408 }
409 } 409 }