Fix: cmd_snapshot_record can return unexpected error codes
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Nov 2018 21:46:36 +0000 (16:46 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Nov 2018 21:52:08 +0000 (16:52 -0500)
cmd_snapshot_record() does not correctly handle the various error
reporting conventions used by the functions it uses. In certain cases,
invalid error codes (not part of enum lttng_error_code) can bubble up
to the command handler which results in erroneous error messages being
reported by the client.

This change harmonizes the error handling and changes a number of
functions used to explicitly return 'enum lttng_error_code' instead
of 'int'.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.025782 seconds and 4 git commands to generate.