summaryrefslogtreecommitdiff
path: root/udevcontrol.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevcontrol.c')
-rw-r--r--udevcontrol.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/udevcontrol.c b/udevcontrol.c
index 6a278a04c1..4a54af805e 100644
--- a/udevcontrol.c
+++ b/udevcontrol.c
@@ -95,8 +95,13 @@ int main(int argc, char *argv[], char *envp[])
retval = sendto(sock, &usend_msg, sizeof(usend_msg), 0, (struct sockaddr *)&saddr, addrlen);
- if (retval == -1)
+ if (retval == -1) {
info("error sending message (%s)", strerror(errno));
+ retval = 1;
+ } else {
+ dbg("sent message '%x' (%u bytes sent)\n", usend_msg.type, retval);
+ retval = 0;
+ }
close(sock);