From: Mathieu Desnoyers Date: Mon, 27 Jan 2014 04:26:53 +0000 (-0500) Subject: Fix: relayd: add LPOLLERR to events X-Git-Tag: v2.5.0-rc1~236 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c7759e6a503ebd197dd6a84de0eeaa52fbd0e81f;p=lttng-tools.git Fix: relayd: add LPOLLERR to events Same as session daemon. Signed-off-by: Mathieu Desnoyers --- diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index 19322f4a0..8f73cd27c 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -155,7 +155,7 @@ int create_thread_poll_set(struct lttng_poll_event *events, int size) } /* Add quit pipe */ - ret = lttng_poll_add(events, live_thread_quit_pipe[0], LPOLLIN); + ret = lttng_poll_add(events, live_thread_quit_pipe[0], LPOLLIN | LPOLLERR); if (ret < 0) { goto error; } diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 86bad26b3..62e149ed2 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -616,7 +616,7 @@ int create_thread_poll_set(struct lttng_poll_event *events, int size) } /* Add quit pipe */ - ret = lttng_poll_add(events, thread_quit_pipe[0], LPOLLIN); + ret = lttng_poll_add(events, thread_quit_pipe[0], LPOLLIN | LPOLLERR); if (ret < 0) { goto error; }