Fix: relayd: add LPOLLERR to events
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 27 Jan 2014 04:26:53 +0000 (23:26 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 28 Jan 2014 21:19:42 +0000 (16:19 -0500)
Same as session daemon.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/bin/lttng-relayd/live.c
src/bin/lttng-relayd/main.c

index 19322f4a07bd718feba6d95167715da2d3612e62..8f73cd27c3eb908b30258ce1fe9c78b340b97e84 100644 (file)
@@ -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;
        }
index 86bad26b3d5c028bcdf2a2f8dffbc4859a8fe2ba..62e149ed2cbdaf574968cbbe93659c48c8907db3 100644 (file)
@@ -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;
        }
This page took 0.027888 seconds and 4 git commands to generate.