summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2012-02-28 17:26:32 +0100
committerMarcus Brinkmann <mb@g10code.com>2012-02-28 17:26:32 +0100
commit8f8c6594147608b1021c16fc3561feb96da5d55a (patch)
treebe2f06c827e2c989caf9fee90abd026b6130ec5e /dirmngr
parentCheck for lber and link dirmngr_ldap to it. (diff)
downloadgnupg2-8f8c6594147608b1021c16fc3561feb96da5d55a.tar.xz
gnupg2-8f8c6594147608b1021c16fc3561feb96da5d55a.zip
Replace npth_yield in busy wait by npth_usleep.
* dirmngr/ldap-wrapper.c (ldap_wrapper_wait_connections): Call npth_usleep instead of npth_yield.
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/ldap-wrapper.c2
1 files changed, 1 insertions, 1 deletions
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);
}