From 4a8a03aeb7430a570618ffec08616c4c87c4ee73 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 16 Feb 2003 07:20:54 +0000 Subject: 2003-02-16 Havoc Pennington * dbus/dbus-connection.c (dbus_connection_set_change_sigpipe): allow people to avoid setting SIGPIPE to SIG_IGN (_dbus_connection_new_for_transport): disable SIGPIPE unless we've been asked not to --- dbus/dbus-sysdeps.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dbus/dbus-sysdeps.c') diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c index e1ae16c3..67677707 100644 --- a/dbus/dbus-sysdeps.c +++ b/dbus/dbus-sysdeps.c @@ -1722,4 +1722,13 @@ _dbus_spawn_async (char **argv, return FALSE; } +/** + * signal (SIGPIPE, SIG_IGN); + */ +void +_dbus_disable_sigpipe (void) +{ + signal (SIGPIPE, SIG_IGN); +} + /** @} end of sysdeps */ -- cgit