Branch: Tag:

2019-05-20

2019-05-20 10:09:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.DNS: Survive Stdio.UDP()->bind() failing with EACCES.

This can apparently happen for usually unprivileged ports on
both NT and Solaris 11.

Fixes PIKE-185 (#8185).

270: Inside #if constant(System.EADDRINUSE)
  #if constant(System.EADDRINUSE)    if (errno() == System.EADDRINUSE) return 0;   #endif + #if constant(System.EACCES) +  if (errno() == System.EACCES) return 0; // Privileged port. + #endif   #if constant(System.WSAEACCES)    if (errno() == System.WSAEACCES) return 0;   #endif