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:38:57 +0000 (11:38 -0400)
commit68d5b00bbc032274a0c60164f0ac2dfd47e6d106
treed61a95cbb325c9bc151f967e188695c0e75f1388
parentee6bb36a4235a005b7d674f341f50c10b2ae52aa
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.02522 seconds and 4 git commands to generate.