X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer-timer.c;h=c659bf63333a0de56fc568f99c167fb55e12e24c;hb=a0b439da54ed351640b74ade4de16db27338ddd1;hp=b867a35bf0d6e9d44da62698fa366f7e06bd2d70;hpb=2d57de81500759ff5398057bad89c64cf8e9834b;p=lttng-tools.git diff --git a/src/common/consumer-timer.c b/src/common/consumer-timer.c index b867a35bf..c659bf633 100644 --- a/src/common/consumer-timer.c +++ b/src/common/consumer-timer.c @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -154,8 +155,8 @@ static int check_kernel_stream(struct lttng_consumer_stream *stream) } ret = kernctl_snapshot(stream->wait_fd); if (ret < 0) { - if (errno != EAGAIN) { - ERR("Taking kernel snapshot"); + if (errno != EAGAIN && errno != ENODATA) { + PERROR("live timer kernel snapshot"); ret = -1; goto error_unlock; }