[Xfce4-commits] r23251 - in terminal/trunk: . terminal

Benedikt Meurer benny at xfce.org
Sun Oct 1 11:19:32 UTC 2006


Author: benny
Date: 2006-10-01 11:19:30 +0000 (Sun, 01 Oct 2006)
New Revision: 23251

Modified:
   terminal/trunk/ChangeLog
   terminal/trunk/configure.in.in
   terminal/trunk/terminal/main.c
Log:
2006-10-01	Benedikt Meurer <benny at xfce.org>

	* configure.in.in, terminal/main.c(main): Ignore SIGPIPE. Bug #2349.




Modified: terminal/trunk/ChangeLog
===================================================================
--- terminal/trunk/ChangeLog	2006-10-01 11:07:17 UTC (rev 23250)
+++ terminal/trunk/ChangeLog	2006-10-01 11:19:30 UTC (rev 23251)
@@ -1,3 +1,7 @@
+2006-10-01	Benedikt Meurer <benny at xfce.org>
+
+	* configure.in.in, terminal/main.c(main): Ignore SIGPIPE. Bug #2349.
+
 2006-09-10	Benedikt Meurer <benny at xfce.org>
 
 	* terminal/terminal-widget.c(terminal_widget_init): Accept drops from

Modified: terminal/trunk/configure.in.in
===================================================================
--- terminal/trunk/configure.in.in	2006-10-01 11:07:17 UTC (rev 23250)
+++ terminal/trunk/configure.in.in	2006-10-01 11:19:30 UTC (rev 23251)
@@ -65,7 +65,7 @@
 dnl **********************************
 dnl *** Check for standard headers ***
 dnl **********************************
-AC_CHECK_HEADERS([ctype.h errno.h limits.h pwd.h time.h])
+AC_CHECK_HEADERS([ctype.h errno.h limits.h pwd.h signal.h time.h])
 
 dnl ******************************
 dnl *** Check for i18n support ***

Modified: terminal/trunk/terminal/main.c
===================================================================
--- terminal/trunk/terminal/main.c	2006-10-01 11:07:17 UTC (rev 23250)
+++ terminal/trunk/terminal/main.c	2006-10-01 11:19:30 UTC (rev 23251)
@@ -23,6 +23,9 @@
 #include <config.h>
 #endif
 
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
 #include <stdlib.h>
 
 #include <exo/exo.h>
@@ -130,6 +133,9 @@
   gint             nargc;
   gint             n;
 
+  /* install required signal handlers */
+  signal (SIGPIPE, SIG_IGN);
+
   xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
   g_set_application_name (_("Terminal"));
 



More information about the Xfce4-commits mailing list