X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fjul-thread.c;h=ad9f9f49f966c2c28a7dae2b9774bdf1ffa91610;hb=f056734385a493c37e45d1d5bcd65718dcac4f5d;hp=a683cdcdbc4756b632ab6c042db474f1c2993b57;hpb=eb5043b3d5d7b5bd1417a81de31f9998abd08d6c;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/jul-thread.c b/src/bin/lttng-sessiond/jul-thread.c index a683cdcdb..ad9f9f49f 100644 --- a/src/bin/lttng-sessiond/jul-thread.c +++ b/src/bin/lttng-sessiond/jul-thread.c @@ -305,6 +305,11 @@ restart: revents = LTTNG_POLL_GETEV(&events, i); pollfd = LTTNG_POLL_GETFD(&events, i); + if (!revents) { + /* No activity for this FD (poll implementation). */ + continue; + } + /* Thread quit pipe has been closed. Killing thread. */ ret = sessiond_check_thread_quit_pipe(pollfd, revents); if (ret) {