diff options
author | Hannes Reinecke <hare@suse.de> | 2005-06-13 22:38:42 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-06-13 22:38:42 +0200 |
commit | 60d7b201008edb3c6d9226ef336c7ae0daa5742f (patch) | |
tree | afa70c4b9824a671890bea2182708240c5f67e9c /udevcontrol.c | |
parent | 561d4c5a3a66830ecfb92fdfd7ccee19cf01c2a7 (diff) |
udevcontrol: fix exit code
Kay is lazy! :)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udevcontrol.c')
-rw-r--r-- | udevcontrol.c | 7 |
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); |