Fix: Handle SIGBUS in sessiond and consumerd
[lttng-tools.git] / src / common / consumer / consumer-timer.c
index cbb0062781f3393d927a5af44842388b3e9d4fec..d0cf170dacf1b08f88dcdc77ba1b541d0ede23c6 100644 (file)
@@ -237,7 +237,11 @@ int consumer_flush_ust_index(struct lttng_consumer_stream *stream)
                ERR("Failed to get the current timestamp");
                goto end;
        }
-       lttng_ustconsumer_flush_buffer(stream, 1);
+       ret = lttng_ustconsumer_flush_buffer(stream, 1);
+       if (ret < 0) {
+               ERR("Failed to flush buffer while flushing index");
+               goto end;
+       }
        ret = lttng_ustconsumer_take_snapshot(stream);
        if (ret < 0) {
                if (ret != -EAGAIN) {
This page took 0.023608 seconds and 4 git commands to generate.