mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Compile fixes ds10.
git-svn-id: file:///svn/unbound/trunk@101 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
c939e5c138
commit
a45ca399fe
2 changed files with 13 additions and 5 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
15 February 2007: Wouter
|
||||||
|
- port to FreeBSD 4.11 Dec Alpha. Also works on Solaris 10 sparc64,
|
||||||
|
Solaris 9, FreeBSD 6, Linux i386 and OSX powerpc.
|
||||||
|
|
||||||
14 February 2007: Wouter
|
14 February 2007: Wouter
|
||||||
- Included configure.ac changes from ldns.
|
- Included configure.ac changes from ldns.
|
||||||
- detect (some) headers before the standards check.
|
- detect (some) headers before the standards check.
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,6 @@ comm_point_tcp_accept_callback(int fd, short event, void* arg)
|
||||||
struct comm_point* c = (struct comm_point*)arg, *c_hdl;
|
struct comm_point* c = (struct comm_point*)arg, *c_hdl;
|
||||||
struct comm_reply rep;
|
struct comm_reply rep;
|
||||||
int new_fd;
|
int new_fd;
|
||||||
log_info("callback tcpaccept for %x", (int)c);
|
|
||||||
log_assert(c->type == comm_tcp_accept);
|
log_assert(c->type == comm_tcp_accept);
|
||||||
if(!(event & EV_READ)) {
|
if(!(event & EV_READ)) {
|
||||||
log_info("ignoring tcp accept event %d", (int)event);
|
log_info("ignoring tcp accept event %d", (int)event);
|
||||||
|
|
@ -276,8 +275,13 @@ comm_point_tcp_accept_callback(int fd, short event, void* arg)
|
||||||
new_fd = accept(fd, (struct sockaddr*)&rep.addr, &rep.addrlen);
|
new_fd = accept(fd, (struct sockaddr*)&rep.addr, &rep.addrlen);
|
||||||
if(new_fd == -1) {
|
if(new_fd == -1) {
|
||||||
/* EINTR is signal interrupt. others are closed connection. */
|
/* EINTR is signal interrupt. others are closed connection. */
|
||||||
if(errno != EINTR && errno != EWOULDBLOCK &&
|
if( errno != EINTR
|
||||||
errno != ECONNABORTED && errno != EPROTO)
|
&& errno != EWOULDBLOCK
|
||||||
|
&& errno != ECONNABORTED
|
||||||
|
#ifdef EPROTO
|
||||||
|
&& errno != EPROTO
|
||||||
|
#endif /* EPROTO */
|
||||||
|
)
|
||||||
log_err("accept failed: %s", strerror(errno));
|
log_err("accept failed: %s", strerror(errno));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -708,7 +712,7 @@ comm_point_drop_reply(struct comm_reply* repinfo)
|
||||||
void
|
void
|
||||||
comm_point_stop_listening(struct comm_point* c)
|
comm_point_stop_listening(struct comm_point* c)
|
||||||
{
|
{
|
||||||
log_info("comm point stop listening %x", (int)c);
|
log_info("comm point stop listening %d", c->fd);
|
||||||
if(event_del(&c->ev->ev) != 0) {
|
if(event_del(&c->ev->ev) != 0) {
|
||||||
log_err("event_del error to stoplisten");
|
log_err("event_del error to stoplisten");
|
||||||
}
|
}
|
||||||
|
|
@ -717,7 +721,7 @@ comm_point_stop_listening(struct comm_point* c)
|
||||||
void
|
void
|
||||||
comm_point_start_listening(struct comm_point* c, int newfd, int sec)
|
comm_point_start_listening(struct comm_point* c, int newfd, int sec)
|
||||||
{
|
{
|
||||||
log_info("comm point start listening %x", (int)c);
|
log_info("comm point start listening %d", c->fd);
|
||||||
if(c->type == comm_tcp_accept && !c->tcp_free) {
|
if(c->type == comm_tcp_accept && !c->tcp_free) {
|
||||||
/* no use to start listening no free slots. */
|
/* no use to start listening no free slots. */
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue