X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fkernel.c;h=371ee4f98a998a3639170ebde6cc8d7142056e94;hp=8e960dfed8fe59786a3de2436aae3155db9851d6;hb=5a47c6a2b20bd88bdb629e159009238248f10ba1;hpb=ab08a675ad07e246b49e7a00927dfd13c1e58ce4 diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index 8e960dfed..371ee4f98 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -483,7 +483,7 @@ int kernel_open_channel_stream(struct ltt_kernel_channel *channel) int ret; struct ltt_kernel_stream *lks; - while ((ret = kernctl_create_stream(channel->fd)) > 0) { + while ((ret = kernctl_create_stream(channel->fd)) >= 0) { lks = trace_kernel_create_stream(); if (lks == NULL) { close(ret);