--- a/terminal/main.c +++ b/terminal/main.c @@ -169,7 +169,9 @@ const gchar *msg; /* install required signal handlers */ +#ifdef HAVE_SIGNAL_H signal (SIGPIPE, SIG_IGN); +#endif xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8"); --- a/terminal/terminal-screen.c +++ b/terminal/terminal-screen.c @@ -37,6 +37,9 @@ #ifdef HAVE_TIME_H #include #endif +#ifdef HAVE_SIGNAL_H +#include +#endif #include @@ -1543,6 +1546,9 @@ spawn_flags |= G_SPAWN_FILE_AND_ARGV_ZERO; } +#ifdef HAVE_SIGNAL_H + signal (SIGPIPE, SIG_DFL); +#endif if (!vte_terminal_fork_command_full (VTE_TERMINAL (screen->terminal), update ? VTE_PTY_DEFAULT : VTE_PTY_NO_LASTLOG | VTE_PTY_NO_UTMP | VTE_PTY_NO_WTMP, screen->working_directory, argv2, env, @@ -1554,6 +1560,9 @@ error, _("Failed to execute child")); g_error_free (error); } +#ifdef HAVE_SIGNAL_H + signal (SIGPIPE, SIG_IGN); +#endif g_free (argv2);