Fix: relayd live don't send incomplete stream list
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 23 Aug 2015 19:52:26 +0000 (12:52 -0700)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Sep 2015 13:11:13 +0000 (09:11 -0400)
commit47d9f81a39e21a7f54dd091161ee77c640a9a6ff
tree696a708d345dd6766f4618219184a32962142ccb
parent8f2f2af8561fa9847bf5e8dce55cfd0cef9d6351
Fix: relayd live don't send incomplete stream list

Sample the "closed" flag with session lock held.
Also, if the session connection is closed while we attach to it, reply
with HUP, because there are risks of attaching to an incomplete session
(e.g. the metadata stream could be already closed).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/live.c
This page took 0.025167 seconds and 4 git commands to generate.