aboutsummaryrefslogtreecommitdiffstats
path: root/agent/findkey.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2021-10-05 05:05:56 +0000
committerNIIBE Yutaka <[email protected]>2021-10-05 05:05:56 +0000
commit3918fa1a9488d56040d43e4af1254f9564266513 (patch)
tree33d75c62a3fffb1730da9e285e5d7047ca14ae46 /agent/findkey.c
parentagent: Fix calibrate_get_time use of clock_gettime. (diff)
downloadgnupg-3918fa1a9488d56040d43e4af1254f9564266513.tar.gz
gnupg-3918fa1a9488d56040d43e4af1254f9564266513.zip
agent,dirmngr,kbx,scd,tpm2d: Use gnupg_sleep.
* agent/findkey.c (unprotect): Use gnupg_sleep. * agent/gpg-agent.c (handle_connections): Likewise. * dirmngr/crlfetch.c (handle_connections): Likewise. * kbx/keyboxd.c (handle_connections): Likewise. * tpm2d/tpm3daemon.c (handle_connections): Likewise. * scd/scdaemon.c (handle_connections): Likewise. * scd/command.c (cmd_lock): Likewise. * dirmngr/ldap-wrapper.c (ldap_reaper_thread): Likewise. (ldap_wrapper_wait_connections): Use gnupg_usleep. -- Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/findkey.c')
-rw-r--r--agent/findkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index 28ff61781..0ba937aad 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -721,7 +721,7 @@ unprotect (ctrl_t ctrl, const char *cache_nonce, const char *desc_text,
{
/* We need to give the other thread a chance to actually put
it into the cache. */
- npth_sleep (1);
+ gnupg_sleep (1);
goto retry;
}
/* Timeout - better call pinentry now the plain way. */