From: Mathieu Desnoyers Date: Mon, 27 Jan 2014 04:26:53 +0000 (-0500) Subject: Fix: relayd: add LPOLLERR to events X-Git-Tag: v2.4.0-rc4~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=532ed517917f8bd6a0a1c8d1ba929d8402e2dd1d;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 e44cfbd10..4b059815d 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -476,7 +476,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; }