pike.git/
lib/
modules/
Protocols.pmod/
DNS.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2012-01-30
2012-01-30 13:29:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>
2fdd641c26b9ef529e41c08d0f12b3570f8a3784 (
6
lines) (+
6
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
Protocols.DNS: Made safe_bind() less verbose in the common failure case.
111:
udp->bind(@args); return 1; };
+
#if constant(System.EADDRINUSE)
+
if (errno() == System.EADDRINUSE) return 0;
+
#endif
+
werror("Protocols.DNS: Binding of UDP port failed with errno %d: %s\n",
+
errno(), strerror(errno()));
master()->handle_error(err); return 0; }