Mercurial > pidgin.yaz
comparison src/aim.c @ 614:a3e32af35b30
[gaim-migrate @ 624]
catch sigsegv :)
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 05 Aug 2000 02:26:39 +0000 |
parents | 01777a942034 |
children | 991bf4e3c9fe |
comparison
equal
deleted
inserted
replaced
613:7800445cc561 | 614:a3e32af35b30 |
---|---|
47 #include <ctype.h> | 47 #include <ctype.h> |
48 #include "gaim.h" | 48 #include "gaim.h" |
49 #ifndef USE_APPLET | 49 #ifndef USE_APPLET |
50 #include "pixmaps/logo.xpm" | 50 #include "pixmaps/logo.xpm" |
51 #endif /* USE_APPLET */ | 51 #endif /* USE_APPLET */ |
52 #if HAVE_SIGNAL_H | |
53 #include <signal.h> | |
54 #endif | |
52 #include "locale.h" | 55 #include "locale.h" |
53 #include "gtkticker.h" | 56 #include "gtkticker.h" |
54 | 57 |
55 static GtkWidget *name; | 58 static GtkWidget *name; |
56 static GtkWidget *pass; | 59 static GtkWidget *pass; |
525 } | 528 } |
526 } | 529 } |
527 | 530 |
528 extern void show_debug(GtkObject *); | 531 extern void show_debug(GtkObject *); |
529 | 532 |
533 #if HAVE_SIGNAL_H | |
534 void sighandler(int sig) | |
535 { | |
536 fprintf(stderr, "God damn, I tripped.\n"); | |
537 exit(11); /* signal 11 */ | |
538 } | |
539 #endif | |
540 | |
530 int main(int argc, char *argv[]) | 541 int main(int argc, char *argv[]) |
531 { | 542 { |
532 #ifdef ENABLE_NLS | 543 #ifdef ENABLE_NLS |
533 bindtextdomain(PACKAGE, LOCALEDIR); | 544 bindtextdomain(PACKAGE, LOCALEDIR); |
534 textdomain(PACKAGE); | 545 textdomain(PACKAGE); |
546 #endif | |
547 | |
548 #if HAVE_SIGNAL_H | |
549 /* Let's not violate any PLA's!!!! */ | |
550 signal(SIGSEGV, sighandler); | |
535 #endif | 551 #endif |
536 | 552 |
537 if (argc > 1 && !strcmp(argv[1], "--version")) { | 553 if (argc > 1 && !strcmp(argv[1], "--version")) { |
538 gtk_init(&argc, &argv); | 554 gtk_init(&argc, &argv); |
539 set_defaults(); /* needed for open_url_nw */ | 555 set_defaults(); /* needed for open_url_nw */ |