From: Mathieu Desnoyers Date: Thu, 5 Dec 2019 06:58:08 +0000 (-0500) Subject: Fix: lttng-live: ctf_live_packet_seek stream hang up handling X-Git-Tag: v1.5.8~2 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=cab553af02b34e1979e14d6c0303ad22a5a3c118 Fix: lttng-live: ctf_live_packet_seek stream hang up handling When get_next_index sets the index position to EOF, ctf_live_packet_seek() should in turn set the stream position to EOF to propagate the hung up state. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/formats/lttng-live/lttng-live-comm.c b/formats/lttng-live/lttng-live-comm.c index 96817f5e..484c025d 100644 --- a/formats/lttng-live/lttng-live-comm.c +++ b/formats/lttng-live/lttng-live-comm.c @@ -1276,7 +1276,11 @@ retry: cur_index->packet_size, cur_index->offset, cur_index->content_size, cur_index->ts_cycles.timestamp_end); - + if (cur_index->offset == EOF) { + pos->offset = EOF; + ret = -BT_PACKET_SEEK_ERROR; + goto end; + } } /*