On Fri, 29 Sep 2017 13:44:51 +0200, Alexander Bluhm wrote:

> A customer has seen a "Can't assign requested address" error from
> syslogd(8) at boot time and then sending messages per UDP did not
> work.  It is a carp(4) setup.
> 
> So I would suggest to add EADDRNOTAVAIL to the error numbers that
> are ignored when doing UDP sendto(2).  Otherwise syslogd would no
> longer send to this destination after the error occured once.

OK millert@ but let's also update send(2) to document EADDRNOTAVAIL
as a possible error.  The description is lifted from connect(2).

OK?

 - todd

Index: lib/libc/sys/send.2
===================================================================
RCS file: /cvs/src/lib/libc/sys/send.2,v
retrieving revision 1.31
diff -u -p -u -r1.31 send.2
--- lib/libc/sys/send.2 9 Sep 2014 06:32:37 -0000       1.31
+++ lib/libc/sys/send.2 29 Sep 2017 16:53:48 -0000
@@ -196,6 +196,8 @@ and
 .Fn sendto
 may return the following error:
 .Bl -tag -width Er
+.It Bq Er EADDRNOTAVAIL
+The specified address is not available on this machine.
 .It Bq Er EINVAL
 .Fa len
 was larger than

Reply via email to