From e1905bf3575cfb2662e1f755500954824a102f2a Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 23 May 2014 15:04:23 -0400 Subject: [PATCH] Fix: don't send consumer error to sessiond in teardown At that point, the control socket has been closed thus the session daemon is aware that the consumer died. The consumer exit reason is not even handled by the session daemon. In the case of the session daemon tearing down, the consumer should avoid trying to send data on a potentially closed socket. Signed-off-by: David Goulet --- src/bin/lttng-consumerd/lttng-consumerd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bin/lttng-consumerd/lttng-consumerd.c b/src/bin/lttng-consumerd/lttng-consumerd.c index e226ebc69..88ce19019 100644 --- a/src/bin/lttng-consumerd/lttng-consumerd.c +++ b/src/bin/lttng-consumerd/lttng-consumerd.c @@ -520,15 +520,11 @@ health_error: error_health_pipe: if (!ret) { ret = EXIT_SUCCESS; - lttng_consumer_send_error(ctx, LTTCOMM_CONSUMERD_EXIT_SUCCESS); goto end; } error: ret = EXIT_FAILURE; - if (ctx) { - lttng_consumer_send_error(ctx, LTTCOMM_CONSUMERD_EXIT_FAILURE); - } end: lttng_consumer_destroy(ctx); -- 2.34.1