openbsd-ports/x11/gnome/gvfs/patches/patch-daemon_daemon-main_c

23 lines
818 B
Plaintext

$OpenBSD: patch-daemon_daemon-main_c,v 1.1 2011/08/29 15:12:50 ajacoutot Exp $
From 9dcde52c3e6b8164180cfe8a60896b6d5e1e8c97 Mon Sep 17 00:00:00 2001
From: Tomas Bzatek <tbzatek@redhat.com>
Date: Mon, 29 Aug 2011 12:50:50 +0000
Subject: Ignore SIGPIPE signals to avoid process termination on cancelled transfer
--- daemon/daemon-main.c.orig Mon May 23 16:38:05 2011
+++ daemon/daemon-main.c Mon Aug 29 16:22:08 2011
@@ -68,6 +68,12 @@ daemon_init (void)
g_log_set_handler (NULL, G_LOG_LEVEL_DEBUG, log_debug, NULL);
+#ifdef SIGPIPE
+ /* Ignore SIGPIPE to avoid killing daemons on cancelled transfer *
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=649041 *
+ */
+ signal (SIGPIPE, SIG_IGN);
+#endif
dbus_error_init (&derror);
connection = dbus_bus_get (DBUS_BUS_SESSION, &derror);