Fix: ignore SIGPIPE
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Oct 2016 16:57:45 +0000 (12:57 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Oct 2016 21:19:08 +0000 (17:19 -0400)
commite0b31a80470c6400daa4cd62dd56d3542f031251
treeefa22b7fbb527f95b4a8462d87c9ab326fdc7686
parentee6cec18ece7805b1966cbaefdfdaa32e123ec60
Fix: ignore SIGPIPE

Issuing fprintf() to stderr (thus write() to the standard error file
descriptor) within the SIGPIPE signal handler is bad: it can trigger
SIGPIPE repeatedly if the listening end has closed its end of the pipe.

Set the SIGPIPE action to SIG_IGN in relayd, sessiond, and consumerd.

This was affecting sessiond and relayd. The consumerd did not print
anything to stderr.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-consumerd/lttng-consumerd.c
src/bin/lttng-relayd/main.c
src/bin/lttng-sessiond/main.c
This page took 0.025471 seconds and 4 git commands to generate.