From: Julien Desfossez Date: Fri, 31 Oct 2014 19:18:00 +0000 (-0400) Subject: Fix: make sure we can exit the get_new_metadata loop X-Git-Tag: v1.2.4~1 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=d1694e4102473f753a5557ecceeba693259c7b75 Fix: make sure we can exit the get_new_metadata loop Signed-off-by: Julien Desfossez --- diff --git a/formats/lttng-live/lttng-live-comm.c b/formats/lttng-live/lttng-live-comm.c index 238cafdd..31cafd78 100644 --- a/formats/lttng-live/lttng-live-comm.c +++ b/formats/lttng-live/lttng-live-comm.c @@ -909,6 +909,10 @@ int get_new_metadata(struct lttng_live_ctx *ctx, } do { + if (lttng_live_should_quit()) { + ret = -1; + goto error; + } /* * get_one_metadata_packet returns the number of bytes * received, 0 when we have received everything, a