Replace npth_yield in busy wait by npth_usleep.
authorMarcus Brinkmann <mb@g10code.com>
Tue, 28 Feb 2012 16:26:32 +0000 (17:26 +0100)
committerMarcus Brinkmann <mb@g10code.com>
Tue, 28 Feb 2012 16:26:32 +0000 (17:26 +0100)
* dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): Call
npth_usleep instead of npth_yield.

dirmngr/ldap-wrapper.c

index 203b472..f2aaf59 100644 (file)
@@ -468,7 +468,7 @@ ldap_wrapper_wait_connections ()
   shutting_down = 1;
   /* FIXME: This is a busy wait.  */
   while (wrapper_list)
-    npth_yield ();
+    npth_usleep (200);
 }