Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix busylooping thread_handler
  • Loading branch information
arr2036 committed Nov 27, 2016
1 parent ef06a36 commit f69b8b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/threads.c
Expand Up @@ -567,9 +567,9 @@ static void *thread_handler(void *arg)
}

/*
* It only returns 0 on EINTR.
* Poll again...
*/
if (rcode == 0) continue;
if ((errno == EINTR) && (rcode == 0)) continue;

DEBUG3("Thread %d processing timers and sockets", thread->thread_num);

Expand Down

0 comments on commit f69b8b0

Please sign in to comment.