$OpenBSD: patch-dbus_dbus-spawn_c,v 1.1 2013/01/08 09:30:27 ajacoutot Exp $

From 90f939f155bd120f44ff3906296707a6c00cd462 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Tue, 16 Oct 2012 18:38:28 +0000
Subject: dbus-spawn: set SIGPIPE to SIG_IGN before activating services

--- dbus/dbus-spawn.c.orig	Fri Sep 28 21:17:25 2012
+++ dbus/dbus-spawn.c	Tue Jan  8 10:00:23 2013
@@ -1256,7 +1256,11 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter     
           _dbus_assert_not_reached ("Got to code after write_err_and_exit()");
 	}
       else if (grandchild_pid == 0)
-	{
+      {
+          /* Go back to ignoring SIGPIPE, since it's evil
+          */
+          signal (SIGPIPE, SIG_IGN);
+
 	  do_exec (child_err_report_pipe[WRITE_END],
 		   argv,
 		   env,
