Improve error reporting - report error message when there is one, or
report a short read if that's what we're reporting.
This commit is contained in:
parent
095aa99d6e
commit
70babecdeb
@ -227,7 +227,10 @@ logmessage(int pri, char *host, char *buf)
|
||||
break;
|
||||
}
|
||||
if (lsent != len)
|
||||
warnx ("sendmsg");
|
||||
if (lsent == -1)
|
||||
warn ("sendto");
|
||||
else
|
||||
warnx ("sendto: short send - %d bytes", lsent);
|
||||
|
||||
free(line);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user