Fix: ust-consumerd: set `hangup_flush_done` in a locked context
[lttng-tools.git] / src / common / ust-consumer / ust-consumer.c
index 83080edde314285a434064e54b5db1699010570c..0ff3ba0f083b717f1899d973445f01c29e4ae293 100644 (file)
@@ -2427,8 +2427,9 @@ void lttng_ustconsumer_on_stream_hangup(struct lttng_consumer_stream *stream)
                ustctl_flush_buffer(stream->ustream, 0);
                stream->quiescent = true;
        }
-       pthread_mutex_unlock(&stream->lock);
+
        stream->hangup_flush_done = 1;
+       pthread_mutex_unlock(&stream->lock);
 }
 
 void lttng_ustconsumer_del_channel(struct lttng_consumer_channel *chan)
This page took 0.023996 seconds and 4 git commands to generate.