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>
Thu, 6 Aug 2015 02:26:37 +0000 (22:26 -0400)
commitfbe49b3b8c9dc03d99441f68dfb8bcf7450d71e3
treee03c285b96ccd8317898b1058c27f13eb78c1852
parentf6151c55e2af06fe2204bcab62cc19e33964e5ce
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.028753 seconds and 4 git commands to generate.