| 394 g_on_error_query (g_get_prgname()); |
393 g_on_error_query (g_get_prgname()); |
| 395 exit(1); |
394 exit(1); |
| 396 #endif |
395 #endif |
| 397 abort(); |
396 abort(); |
| 398 break; |
397 break; |
| 399 case SIGCHLD: |
|
| 400 clean_pid(); |
|
| 401 #if HAVE_SIGNAL_H |
|
| 402 signal(SIGCHLD, sighandler); /* restore signal catching on this one! */ |
|
| 403 #endif |
|
| 404 break; |
|
| 405 default: |
398 default: |
| 406 debug_printf("caught signal %d\n", sig); |
399 debug_printf("caught signal %d\n", sig); |
| 407 gtkspell_stop(); |
|
| 408 signoff_all(NULL, NULL); |
400 signoff_all(NULL, NULL); |
| 409 #ifdef GAIM_PLUGINS |
401 #ifdef GAIM_PLUGINS |
| 410 remove_all_plugins(); |
402 remove_all_plugins(); |
| 411 #endif |
403 #endif |
| 412 if (gtk_main_level()) |
404 if (gtk_main_level()) |
| 797 opt_user_arg = NULL; |
789 opt_user_arg = NULL; |
| 798 } |
790 } |
| 799 |
791 |
| 800 if (misc_options & OPT_MISC_DEBUG) |
792 if (misc_options & OPT_MISC_DEBUG) |
| 801 show_debug(); |
793 show_debug(); |
| 802 #ifndef _WIN32 |
794 |
| 803 /*If ispell fails to start, try using aspell in ispell compatibitity mode. |
|
| 804 Gabber does this the same way -- lorien420@myrealbox.com*/ |
|
| 805 if (convo_options & OPT_CONVO_CHECK_SPELLING){ |
|
| 806 if (gtkspell_start(NULL, ispell_cmd)<0){ |
|
| 807 debug_printf("gtkspell failed to start when using ispell\n"); |
|
| 808 if (gtkspell_start(NULL, aspell_cmd)<0){ |
|
| 809 debug_printf("gtkspell failed to start when using aspell\n"); |
|
| 810 } else |
|
| 811 debug_printf("gtkspell started with aspell\n"); |
|
| 812 } else { |
|
| 813 debug_printf("gtkspell started with ispell\n"); |
|
| 814 } |
|
| 815 } |
|
| 816 #endif |
|
| 817 static_proto_init(); |
795 static_proto_init(); |
| 818 |
796 |
| 819 /* deal with --login */ |
797 /* deal with --login */ |
| 820 if (opt_login) { |
798 if (opt_login) { |
| 821 dologin_ret = dologin_named(opt_login_arg); |
799 dologin_ret = dologin_named(opt_login_arg); |