sysdeps-unix: Use MSG_NOSIGNAL when available
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Apr 2009 00:54:23 +0000 (02:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 May 2009 18:30:15 +0000 (20:30 +0200)
commitff0a8993d4716cb7729f4a0ffab9ab242f82b242
tree16b1581f7ed9175db9d42733a1b7507bf7bf9296
parent6d2eacba89328029891ffe774ce37df44387cfbb
sysdeps-unix: Use MSG_NOSIGNAL when available

On Linux send()/sendmsg() know the special flag MSG_NOSIGNAL which if
set makes sure that no SIGPIPE signal is raised when we write to a
socket that has been disconnected.

By using this flag we don't have to play games with SIGPIPE which is
pretty ugly stuff since it touches the global process context.
dbus/dbus-sysdeps-unix.c