2019-05-20
2019-05-20 10:09:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
31658ebea53b95733a05cca6785d68acd5e52bb2
(4 lines)
(+4/-0)
[
Show
| Annotate
]
Branch: 8.0
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