X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ltt-sessiond%2Fmain.c;h=edeb86d29d5b168b795af6869ef5dce86811971a;hb=271933a4d7438f73f1487842bb18b2442ceaec48;hp=c72087ef25ddb88d27634e5d97d1967d1bec0277;hpb=7272acf55ec512708704dc5f1ad4f447e5b3ca8e;p=lttng-tools.git diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index c72087ef2..edeb86d29 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; @@ -2306,7 +2312,7 @@ static int cmd_destroy_session(struct ltt_session *session, char *name) perror("write kernel poll pipe"); } - ret = session_destroy(name); + ret = session_destroy(session); return ret; }