Clean-up: harmonize kernctl API error checking
[lttng-tools.git] / src / common / consumer / consumer-timer.c
index 931f7471fc6fe974982ff1cb687750ff68f80a7c..b0a434284a87d888f631b3fc8f0d435fc4c1d888 100644 (file)
@@ -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;
This page took 0.022912 seconds and 4 git commands to generate.