From 532ed517917f8bd6a0a1c8d1ba929d8402e2dd1d Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 26 Jan 2014 23:26:53 -0500 Subject: [PATCH] Fix: relayd: add LPOLLERR to events Same as session daemon. Signed-off-by: Mathieu Desnoyers --- src/bin/lttng-relayd/live.c | 2 +- src/bin/lttng-relayd/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1