Fix: error handling in kernel add_channel
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 23 May 2013 21:07:08 +0000 (17:07 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 28 May 2013 17:09:08 +0000 (13:09 -0400)
commite43c41c57a0087c782ca0ec29d6613364605d31d
treeb94739c08124972368cb7a1e075be20f05d3a65e
parent4c95e622041958250db73b497097ed93f7715e20
Fix: error handling in kernel add_channel

consumer_add_channel can return an error, it needs to be handled. Also,
init_kernel_tracing returns a positive lttng_error_code on error, so the
check in start_kernel_session needs to be for ret != 0.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/cmd.c
src/common/consumer.c
src/common/kernel-consumer/kernel-consumer.c
This page took 0.026005 seconds and 4 git commands to generate.