From: Mathieu Desnoyers Date: Fri, 1 Nov 2019 20:23:04 +0000 (-0400) Subject: Fix: relayd: put chunk reference when closing stream X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=d91bc249cd6e3d3a3b8de29d226343d5db279cb3;hp=d91bc249cd6e3d3a3b8de29d226343d5db279cb3 Fix: relayd: put chunk reference when closing stream If a stream is closed by an application exiting (per-pid buffers), it needs to put its reference on the stream trace chunk right away, because otherwise still holding the reference on the trace chunk could allow a viewer stream (which holds a reference to the stream) to postpone destroy waiting for the chunk to cease to exist endlessly until the viewer is detached. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---