Use the anet-reported error string when reporting bind errors.
errno may have been modified by the time you see it.
This commit is contained in:
parent
c09c68466c
commit
186cac5c25
2
net_io.c
2
net_io.c
|
@ -88,7 +88,7 @@ void modesInitNet(void) {
|
|||
int s = anetTcpServer(Modes.aneterr, services[j].port, NULL);
|
||||
if (s == -1) {
|
||||
fprintf(stderr, "Error opening the listening port %d (%s): %s\n",
|
||||
services[j].port, services[j].descr, strerror(errno));
|
||||
services[j].port, services[j].descr, Modes.aneterr);
|
||||
exit(1);
|
||||
}
|
||||
anetNonBlock(Modes.aneterr, s);
|
||||
|
|
Loading…
Reference in a new issue