- Fix from code review, if EINPROGRESS not defined chain if statement differently.

git-svn-id: file:///svn/unbound/trunk@2636 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2012-02-28 15:06:59 +00:00
parent d7172c55ed
commit 57199f80c9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
28 February 2012: Wouter
- Fix from code review, if EINPROGRESS not defined chain if statement
differently.
27 February 2012: Wouter
- Fix bug#434: on windows check registry for config file location
for unbound-control.exe, and unbound-checkconf.exe.

View File

@ -1195,8 +1195,9 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
#if defined(EINPROGRESS) && defined(EWOULDBLOCK)
if(error == EINPROGRESS || error == EWOULDBLOCK)
return 1; /* try again later */
else
#endif
else if(error != 0 && verbosity < 2)
if(error != 0 && verbosity < 2)
return 0; /* silence lots of chatter in the logs */
else if(error != 0) {
log_err("tcp connect: %s", strerror(error));