pidgin/gtkmain.c

branch
soc.2013.gobjectification
changeset 34882
8dc8663fbcd9
parent 34708
dd67596485ca
parent 34293
c1da9082287f
child 34883
7d9d0d7b7b62
child 36540
10eb918682fc
equal deleted inserted replaced
34881:badfcdf6b95d 34882:8dc8663fbcd9
86 static const int catch_sig_list[] = { 86 static const int catch_sig_list[] = {
87 SIGSEGV, 87 SIGSEGV,
88 SIGINT, 88 SIGINT,
89 SIGTERM, 89 SIGTERM,
90 SIGQUIT, 90 SIGQUIT,
91 SIGCHLD,
91 -1 92 -1
92 }; 93 };
93 94
94 static const int ignore_sig_list[] = { 95 static const int ignore_sig_list[] = {
95 SIGPIPE, 96 SIGPIPE,
180 "from signal socket: %s", error->message); 181 "from signal socket: %s", error->message);
181 purple_core_quit(); 182 purple_core_quit();
182 return FALSE; 183 return FALSE;
183 } 184 }
184 185
185 purple_debug_warning("sighandler", "Caught signal %d\n", sig); 186 switch (sig) {
186 purple_core_quit(); 187 case SIGCHLD:
188 /* Restore signal catching */
189 signal(SIGCHLD, sighandler);
190 break;
191 default:
192 purple_debug_warning("sighandler", "Caught signal %d\n", sig);
193 purple_core_quit();
194 }
187 195
188 return TRUE; 196 return TRUE;
189 } 197 }
190 #endif 198 #endif
191 199

mercurial