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>
Tue, 6 Mar 2018 16:37:27 +0000 (11:37 -0500)
commit06586bbe5daca94845ab53f177883eb97e56bf50
treebf0f2916ff4e5bc6ab0df377c36676292a520be0
parent76b9afaa436496319456775d7ba7f20eeac09d5d
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.026558 seconds and 5 git commands to generate.