From: Miroslav Spousta <[email protected]>

get_thr_arg() always waits for non-NULL argument. It prevents "NULL
get_thr_arg" log message.
---
 pound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pound.c b/pound.c
index 3643f70..42a869d 100644
--- a/pound.c
+++ b/pound.c
@@ -156,7 +156,7 @@ get_thr_arg(void)
     thr_arg *res;
 
     (void)pthread_mutex_lock(&arg_mut);
-    if(first == NULL)
+    while(first == NULL)
         (void)pthread_cond_wait(&arg_cond, &arg_mut);
     if((res = first) != NULL)
         if((first = first->next) == NULL)
-- 
1.8.3.1


--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to