Fix: Returned code when listing kernel channel
authorDavid Goulet <dgoulet@efficios.com>
Mon, 24 Sep 2012 20:55:08 +0000 (16:55 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 24 Sep 2012 21:24:58 +0000 (17:24 -0400)
commitc7d620a2a00e1da14a0d06752b9055d9de6017b5
tree860bc485b50f52489b60cfb850dd2eea7f51db39
parentfb3268e3029673dbb7c6d43b2dcde5e5f9eec07a
Fix: Returned code when listing kernel channel

The lttng_list_channels() API call now returns a
LTTNG_ERR_KERN_CHAN_NOT_FOUND or LTTNG_ERR_UST_CHAN_NOT_FOUND when there
is no channel enabled for the session and domain.

Changes had to be made to the list command in order to correctly manage
the returned code.

The bug260 mentionned that the session(s) were destroyed but this could
not be reproduce. However, the rest of the bug description is valid.

Fixes #260

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/cmd.c
src/bin/lttng/commands/list.c
This page took 0.025018 seconds and 4 git commands to generate.