pidgin: 53872004: Use purple_core_quit() in the sighandler...
rlaager at pidgin.im
rlaager at pidgin.im
Mon May 26 02:30:48 EDT 2008
-----------------------------------------------------------------
Revision: 5387200488763be6c75c2073346fcf9063b6b132
Ancestor: c22d824152072143b7ba7eb8b365c97069c60761
Author: rlaager at pidgin.im
Date: 2008-05-26T06:25:13
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5387200488763be6c75c2073346fcf9063b6b132
Modified files:
pidgin/gtkmain.c
ChangeLog:
Use purple_core_quit() in the sighandler instead of duplicating part of it.
Also, make SIGHUP quit instead of just disconnecting all accounts.
This might annoy warmenhoven. ;)
Refs #1602
-------------- next part --------------
============================================================
--- pidgin/gtkmain.c cc7196acff3a1dd4c4d159a325b0d293b60b8aec
+++ pidgin/gtkmain.c 36747983e01908fd51e0d5fbf0da0216bb135d85
@@ -185,10 +185,6 @@ sighandler(int sig)
sighandler(int sig)
{
switch (sig) {
- case SIGHUP:
- purple_debug_warning("sighandler", "Caught signal %d\n", sig);
- purple_connections_disconnect_all();
- break;
case SIGSEGV:
fprintf(stderr, "%s", segfault_message);
abort();
@@ -217,13 +213,7 @@ sighandler(int sig)
break;
default:
purple_debug_warning("sighandler", "Caught signal %d\n", sig);
- purple_connections_disconnect_all();
-
- purple_plugins_unload_all();
-
- if (gtk_main_level())
- gtk_main_quit();
- exit(0);
+ purple_core_quit();
}
}
#endif
More information about the Commits
mailing list