Fix: Use MSG_NOSIGNAL when calling sendmsg()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Aug 2015 01:26:34 +0000 (21:26 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 14 Aug 2015 22:04:02 +0000 (18:04 -0400)
commit36ad6c25c8b3fa6a9b4ce711ba061b5bdc7f98ee
tree8beb9ef09ac0f93d2aa54348a971c31b0e3460c8
parent690842ebb200f685b75beb5e5022d69428df8050
Fix: Use MSG_NOSIGNAL when calling sendmsg()

Applications using the liblttng-ctl library are most probably
not expecting the SIGPIPE signal which can be triggered by
sendmsg() on a closed socket. Use the MSG_NOSIGNAL flag to
handle such cases gracefully.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/sessiond-comm/unix.c
This page took 0.027866 seconds and 4 git commands to generate.