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-Url: http://drtracing.org/?a=commitdiff_plain;h=96aa3f9c8cfa4dde0bf5fef54472b8a07fbd7866;p=deliverable%2Fbabeltrace.git 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 5843fd7c8..e47318157 100644 --- a/formats/lttng-live/lttng-live-comm.c +++ b/formats/lttng-live/lttng-live-comm.c @@ -910,6 +910,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