Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tcp: fix tvhpoll_wait() return value checking
  • Loading branch information
perexg committed Mar 5, 2016
1 parent 74d8fda commit 2beb508
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tcp.c
Expand Up @@ -669,8 +669,10 @@ tcp_server_loop(void *aux)

while(tcp_server_running) {
r = tvhpoll_wait(tcp_server_poll, &ev, 1, -1);
if(r == -1) {
perror("tcp_server: tvhpoll_wait");
if(r < 0) {
if (ERRNO_AGAIN(r))
continue;
tvherror("tcp", "tcp_server_loop: tvhpoll_wait: %s", strerror(errno));
continue;
}

Expand Down

0 comments on commit 2beb508

Please sign in to comment.