Fix: error handling on relay version check
authorJulien Desfossez <jdesfossez@efficios.com>
Wed, 14 Feb 2018 21:32:44 +0000 (16:32 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 20 Feb 2018 00:53:17 +0000 (19:53 -0500)
commit67d5aa2855e526af41a75754f99a70c281936636
tree9948dd0a681ff93a2816e1181240b3292b1ed26a
parent15623b7d24de5bd828ac21f55bdfea4835c4227a
Fix: error handling on relay version check

If a network error occurs while performing the version check between
the session daemon and the relay, we should not report to the user that
there is a version mismatch. LTTNG_ERR_RELAYD_VERSION_FAIL is now
returned by relayd_version_check() when the daemons are not compatible
while a negative value is returned if sendmsg()/recvmsg() fail on
network errors.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c
src/common/relayd/relayd.c
This page took 0.02555 seconds and 4 git commands to generate.