aboutsummaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rw-r--r--agent/findkey.c2
-rw-r--r--agent/gpg-agent.c2
2 files changed, 2 insertions, 2 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. */
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index dd60847e6..2c4d313f5 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -3041,7 +3041,7 @@ handle_connections (gnupg_fd_t listen_fd,
{
log_error (_("npth_pselect failed: %s - waiting 1s\n"),
strerror (saved_errno));
- npth_sleep (1);
+ gnupg_sleep (1);
continue;
}
if (ret <= 0)