X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-sessiond%2Fmain.c;h=01fac7ad9ba4d436d7265799e123b878681c4ebb;hb=7c8fcb125974e2e4a1eeafabb6c767083557a177;hp=eb02b69fa090659df8dfe33171e193f26a4cb1f7;hpb=2c58cc2eccbb85063cc547c0259d276a2be5c0a4;p=lttng-tools.git diff --git a/ltt-sessiond/main.c b/ltt-sessiond/main.c index eb02b69fa..01fac7ad9 100644 --- a/ltt-sessiond/main.c +++ b/ltt-sessiond/main.c @@ -727,6 +727,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; @@ -2365,7 +2371,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; }