changeset 23191:849c3d109a38

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
author Richard Laager <rlaager@wiktel.com>
date Mon, 26 May 2008 06:25:13 +0000
parents eab3ce582cac
children ead0e6aa9c46
files pidgin/gtkmain.c
diffstat 1 files changed, 1 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkmain.c	Sun May 25 23:48:50 2008 +0000
+++ b/pidgin/gtkmain.c	Mon May 26 06:25:13 2008 +0000
@@ -185,10 +185,6 @@
 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 @@
 		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