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:09:33 +0000 (18:09 -0400)
commit8eadb073927f4184aeb659aace661ca2cf1cb40b
treee18265c9ca1fbe0d2b098461e6c9791563445be3
parent28c48b38a2e23ec247922fa9db94ad5854965e4d
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.025095 seconds and 4 git commands to generate.