X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=ltt-sessiond%2Fmain.c;fp=ltt-sessiond%2Fmain.c;h=c66ecb95690df819ce95825b83f20ac147dd4137;hp=c72087ef25ddb88d27634e5d97d1967d1bec0277;hb=5f822d0a2688bb0b085b579dfc37a1958fff072e;hpb=7272acf55ec512708704dc5f1ad4f447e5b3ca8e diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index c72087ef2..c66ecb956 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -701,6 +701,12 @@ static void *thread_manage_kernel(void *data) while (1) { if (update_poll_flag == 1) { + /* + * Reset number of fd in the poll set. Always 2 since there is the thread + * quit pipe and the kernel pipe. + */ + events.nb_fd = 2; + ret = update_kernel_poll(&events); if (ret < 0) { goto error;