comparison pidgin/gtkmain.c @ 19581:4e147af6a033

disapproval of revision 'cccc7902a8993aaa6b6ef10c1fb9480763055463'
author Ka-Hing Cheung <khc@hxbc.us>
date Mon, 03 Sep 2007 02:16:27 +0000
parents 1c5d0f2c2d4e
children a38ee5d9eedf
comparison
equal deleted inserted replaced
19579:1c5d0f2c2d4e 19581:4e147af6a033
84 #ifdef HAVE_STARTUP_NOTIFICATION 84 #ifdef HAVE_STARTUP_NOTIFICATION
85 static SnLauncheeContext *sn_context = NULL; 85 static SnLauncheeContext *sn_context = NULL;
86 static SnDisplay *sn_display = NULL; 86 static SnDisplay *sn_display = NULL;
87 #endif 87 #endif
88 88
89 #include "/home/khc/Code/scratch/memory_profile.c"
90
91 #ifdef HAVE_SIGNAL_H 89 #ifdef HAVE_SIGNAL_H
92 90
93 /* 91 /*
94 * Lists of signals we wish to catch and those we wish to ignore. 92 * Lists of signals we wish to catch and those we wish to ignore.
95 * Each list terminated with -1 93 * Each list terminated with -1
100 SIGINT, 98 SIGINT,
101 SIGTERM, 99 SIGTERM,
102 SIGQUIT, 100 SIGQUIT,
103 SIGCHLD, 101 SIGCHLD,
104 SIGALRM, 102 SIGALRM,
105 SIGUSR2,
106 -1 103 -1
107 }; 104 };
108 105
109 static int ignore_sig_list[] = { 106 static int ignore_sig_list[] = {
110 SIGPIPE, 107 SIGPIPE,
216 alarm(1); 213 alarm(1);
217 break; 214 break;
218 case SIGALRM: 215 case SIGALRM:
219 clean_pid(); 216 clean_pid();
220 break; 217 break;
221 case SIGUSR2:
222 mp_tally();
223 break;
224 default: 218 default:
225 purple_debug_warning("sighandler", "Caught signal %d\n", sig); 219 purple_debug_warning("sighandler", "Caught signal %d\n", sig);
226 purple_connections_disconnect_all(); 220 purple_connections_disconnect_all();
227 221
228 purple_plugins_unload_all(); 222 purple_plugins_unload_all();
487 {"nologin", no_argument, NULL, 'n'}, 481 {"nologin", no_argument, NULL, 'n'},
488 {"session", required_argument, NULL, 's'}, 482 {"session", required_argument, NULL, 's'},
489 {"version", no_argument, NULL, 'v'}, 483 {"version", no_argument, NULL, 'v'},
490 {0, 0, 0, 0} 484 {0, 0, 0, 0}
491 }; 485 };
492
493 //g_mem_set_vtable(&memhook);
494 //mp_init();
495 486
496 #ifdef DEBUG 487 #ifdef DEBUG
497 debug_enabled = TRUE; 488 debug_enabled = TRUE;
498 #else 489 #else
499 debug_enabled = FALSE; 490 debug_enabled = FALSE;