Fix: relayd send_command() util not logging on failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 6 Mar 2018 16:35:23 +0000 (11:35 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 25 Apr 2018 15:25:17 +0000 (11:25 -0400)
commit6c1a60c61e5e06102bdd42f64075c3c754e324eb
tree6fe0c5f6761a89f9d60d93de09f27f55bbffeb6b
parent2cc6b436600827e0dcf1b889e9ff53be60491d8e
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 <jeremie.galarneau@efficios.com>
src/common/relayd/relayd.c
This page took 0.025156 seconds and 4 git commands to generate.