From 8f8c6594147608b1021c16fc3561feb96da5d55a Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 28 Feb 2012 17:26:32 +0100 Subject: [PATCH] Replace npth_yield in busy wait by npth_usleep. * dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): Call npth_usleep instead of npth_yield. --- dirmngr/ldap-wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dirmngr/ldap-wrapper.c b/dirmngr/ldap-wrapper.c index 203b47263..f2aaf59d0 100644 --- a/dirmngr/ldap-wrapper.c +++ b/dirmngr/ldap-wrapper.c @@ -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); }