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:11 +0000 (19:54 -0500)
commit3071c8c75ca3095d53f345cc7251c72c4aeedbd8
tree3fb64f190ca856e47a07ce126e957d9375f12a35
parenteee1bb02d6c1e7d3f241759a24f8e5d46271d82e
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.026123 seconds and 4 git commands to generate.