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:54:05 +0000 (19:54 -0500)
commit84a1ef69143f198278fb8fc2cf66dcd1da82a70e
tree3b1c6fc0179e018d58b2e8d9636010bf7049f214
parent7254f3118f1ec3a06630d73291d74e3d79820ac6
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.025649 seconds and 4 git commands to generate.