version 1.278, 2003/09/23 20:17:11 |
version 1.279, 2003/09/26 08:19:29 |
|
|
verbose("socket: %.100s", strerror(errno)); |
verbose("socket: %.100s", strerror(errno)); |
continue; |
continue; |
} |
} |
if (fcntl(listen_sock, F_SETFL, O_NONBLOCK) < 0) { |
|
error("listen_sock O_NONBLOCK: %s", strerror(errno)); |
|
close(listen_sock); |
|
continue; |
|
} |
|
/* |
/* |
* Set socket options. |
* Set socket options. |
* Allow local port reuse in TIME_WAIT. |
* Allow local port reuse in TIME_WAIT. |
|
|
if (newsock < 0) { |
if (newsock < 0) { |
if (errno != EINTR && errno != EWOULDBLOCK) |
if (errno != EINTR && errno != EWOULDBLOCK) |
error("accept: %.100s", strerror(errno)); |
error("accept: %.100s", strerror(errno)); |
continue; |
|
} |
|
if (fcntl(newsock, F_SETFL, 0) < 0) { |
|
error("newsock del O_NONBLOCK: %s", strerror(errno)); |
|
close(newsock); |
|
continue; |
continue; |
} |
} |
if (drop_connection(startups) == 1) { |
if (drop_connection(startups) == 1) { |