diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-22 03:05:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-05-15 20:30:15 +0200 |
commit | 03d50fbd77481568bb2127d8b92e22d2cdc61ab8 (patch) | |
tree | 1eb1d695e3ee6739288cc61c9f9fc4491be9e4c7 /dbus | |
parent | ff0a8993d4716cb7729f4a0ffab9ab242f82b242 (diff) |
sysdeps-unix: if MSG_NOSIGNAL is available don't touch SIGPIPE by default
If we can use MSG_NOSIGNAL we don't have to play games with SIGPIPE
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index 947c0afe..afa0ca6a 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -223,7 +223,11 @@ struct DBusPreallocatedSend DBusList *counter_link; /**< Preallocated link in the resource counter */ }; +#ifdef HAVE_DECL_MSG_NOSIGNAL +static dbus_bool_t _dbus_modify_sigpipe = FALSE; +#else static dbus_bool_t _dbus_modify_sigpipe = TRUE; +#endif /** * Implementation details of DBusConnection. All fields are private. |