Fix: wrong error code returned by kernel_snapshot_record()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 27 Mar 2019 19:42:19 +0000 (15:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 29 Mar 2019 15:51:18 +0000 (11:51 -0400)
commitc1fcc06acaf11e0aa324aa9c26870d6a0f457728
treea3cde00d08e826eb34f58cf3040b0c12c893530b
parentaf0c0d75dd996dbf21bda2c8364f35c1e2ef7f0a
Fix: wrong error code returned by kernel_snapshot_record()

On snapshot error, kernel_snapshot_record() can return
LTTNG_ERR_KERN_CONSUMER_FAIL which means that the kernel consumer
daemon failed to launch. In this path, the appropriate error to
return is LTTNG_ERR_KERN_META_FAIL.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel.c
This page took 0.02536 seconds and 4 git commands to generate.