1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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 <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2021-10-05 14:05:56 +09:00
parent eeb25df6f8
commit 3918fa1a94
9 changed files with 13 additions and 13 deletions

View file

@ -329,7 +329,7 @@ ldap_reaper_thread (void *dummy)
" - waiting 1s\n", gpg_strerror (err));
/* Note: Here we unlock and continue! */
unlock_reaper_list ();
npth_sleep (1);
gnupg_sleep (1);
continue;
}
fparraysize = count;
@ -393,7 +393,7 @@ ldap_reaper_thread (void *dummy)
xfree (fparray);
fparray = NULL;
fparraysize = 0;
npth_sleep (1);
gnupg_sleep (1);
continue;
}
@ -582,7 +582,7 @@ ldap_wrapper_wait_connections ()
}
unlock_reaper_list ();
while (reaper_list)
npth_usleep (200);
gnupg_usleep (200);
}