Fix: don't send consumer error to sessiond in teardown
authorDavid Goulet <dgoulet@efficios.com>
Fri, 23 May 2014 19:04:23 +0000 (15:04 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 23 May 2014 19:04:23 +0000 (15:04 -0400)
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 <dgoulet@efficios.com>
src/bin/lttng-consumerd/lttng-consumerd.c

index e226ebc69e973eb34faa74d7a1be56ab7c3ab090..88ce190190438725ec2316af84e28247819f7d43 100644 (file)
@@ -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);
This page took 0.02817 seconds and 4 git commands to generate.