From 3918fa1a9488d56040d43e4af1254f9564266513 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 5 Oct 2021 14:05:56 +0900 Subject: 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 --- scd/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scd/command.c') diff --git a/scd/command.c b/scd/command.c index 0819318e7..6ffc13626 100644 --- a/scd/command.c +++ b/scd/command.c @@ -1726,9 +1726,9 @@ cmd_lock (assuan_context_t ctx, char *line) if (rc && has_option (line, "--wait")) { rc = 0; - npth_sleep (1); /* Better implement an event mechanism. However, - for card operations this should be - sufficient. */ + gnupg_sleep (1); /* Better implement an event mechanism. However, + for card operations this should be + sufficient. */ /* Send a progress so that we can detect a connection loss. */ rc = send_status_printf (ctrl, "PROGRESS", "scd_locked . 0 0"); if (!rc) -- cgit v1.2.3