X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer%2Fconsumer-timer.c;h=b0a434284a87d888f631b3fc8f0d435fc4c1d888;hb=32af2c95c9494c282804964aed17bb2d57887505;hp=931f7471fc6fe974982ff1cb687750ff68f80a7c;hpb=69f60d21c627ad2fcae6d25fecf91e639c6ded33;p=lttng-tools.git diff --git a/src/common/consumer/consumer-timer.c b/src/common/consumer/consumer-timer.c index 931f7471f..b0a434284 100644 --- a/src/common/consumer/consumer-timer.c +++ b/src/common/consumer/consumer-timer.c @@ -148,7 +148,7 @@ int consumer_flush_kernel_index(struct lttng_consumer_stream *stream) } ret = kernctl_snapshot(stream->wait_fd); if (ret < 0) { - if (errno != EAGAIN && errno != ENODATA) { + if (ret != -EAGAIN && ret != -ENODATA) { PERROR("live timer kernel snapshot"); ret = -1; goto end;