changeset 2755:adbda5d9b50c

[gaim-migrate @ 2768] don't ask committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 19 Nov 2001 08:23:32 +0000
parents 642413968b03
children 213da352c0a8
files src/aim.c src/core.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/aim.c	Mon Nov 19 04:35:39 2001 +0000
+++ b/src/aim.c	Mon Nov 19 08:23:32 2001 +0000
@@ -385,6 +385,7 @@
 		break;
 	case SIGSEGV:
 		core_quit();
+#ifndef DEBUG
 		fprintf(stderr, "Gaim has segfaulted and attempted to dump a core file.\n"
 			"This is a bug in the software and has happened through\n"
 			"no fault of your own.\n\n"
@@ -401,6 +402,7 @@
 			WEBSITE "gdb.php. If you need further\n"
 			"assistance, please IM either EWarmenhoven or RobFlynn and\n"
 			"they can help you.\n");
+#endif
 		abort();
 		break;
 	default:
@@ -561,9 +563,7 @@
 
 #if HAVE_SIGNAL_H
 	/* Let's not violate any PLA's!!!! */
-#ifndef DEBUG
 	signal(SIGSEGV, sighandler);
-#endif
 	signal(SIGHUP, sighandler);
 	signal(SIGINT, sighandler);
 	signal(SIGTERM, sighandler);
--- a/src/core.c	Mon Nov 19 04:35:39 2001 +0000
+++ b/src/core.c	Mon Nov 19 08:23:32 2001 +0000
@@ -450,4 +450,5 @@
 	close(UI_fd);
 	sprintf(buf, "%s/gaim_%s.%d", g_get_tmp_dir(), g_get_user_name(), getpid());
 	unlink(buf);
+	debug_printf("Removed core\n");
 }