X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fht-cleanup.c;h=373c913dccae1bbb484fefc8e518b9c3821ef255;hp=ace41e5cd5654f6a791e50c82fe90bcc8c406722;hb=fd20dac985126e84929d657f5a1042222c7d5017;hpb=dbe23f452a025e8f42bdbb41e30a4a6257aa821c diff --git a/src/bin/lttng-sessiond/ht-cleanup.c b/src/bin/lttng-sessiond/ht-cleanup.c index ace41e5cd..373c913dc 100644 --- a/src/bin/lttng-sessiond/ht-cleanup.c +++ b/src/bin/lttng-sessiond/ht-cleanup.c @@ -96,6 +96,11 @@ restart: revents = LTTNG_POLL_GETEV(&events, i); pollfd = LTTNG_POLL_GETFD(&events, i); + if (!revents) { + /* No activity for this FD (poll implementation). */ + continue; + } + if (pollfd != ht_cleanup_pipe[0]) { continue; } @@ -140,6 +145,11 @@ restart: revents = LTTNG_POLL_GETEV(&events, i); pollfd = LTTNG_POLL_GETFD(&events, i); + if (!revents) { + /* No activity for this FD (poll implementation). */ + continue; + } + if (pollfd == ht_cleanup_pipe[0]) { continue; }