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://git.efficios.com/?a=commitdiff_plain;h=d1694e4102473f753a5557ecceeba693259c7b75;hp=0e4e7f3993b88d5307872b5c73c4c3f52b04ff6a;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 238cafdd0..31cafd78b 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