From: Jérémie Galarneau Date: Tue, 6 Mar 2018 16:35:23 +0000 (-0500) Subject: Fix: relayd send_command() util not logging on failure X-Git-Tag: v2.9.9~6 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=68d5b00bbc032274a0c60164f0ac2dfd47e6d106;hp=68d5b00bbc032274a0c60164f0ac2dfd47e6d106;p=lttng-tools.git Fix: relayd send_command() util not logging on failure send_command() only logs if it succeeds in sending a command to the relay daemon. This commit makes the helper log _before_ sending the command so that errors can be associated back to the command being sent. Moreover, PERROR() is used to log errors returned by sendmsg(). Signed-off-by: Jérémie Galarneau ---