Branch: Tag:

2012-01-30

2012-01-30 13:30:02 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Protocols.DNS: Made safe_bind() less verbose in the common failure case.

112:    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;   }