mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
assuan: Fix exponential decay for first second.
* common/asshelp.c (wait_for_sock): Round SECSLEFT. * dirmngr/dirmngr.c (main): Take care of --debug-wait also in dameon mode. * common/sysutils.c (gnupg_usleep) [HAVE_NANOSLEEP]: Fix nanosleep use. -- Without the rounding we saw in verbose mose [...]to come up ... (5s) [...]to come up ... (4s) immediately without the expected one second delay. Waiting for the next seconds did not work if nanosleep was used due to improper passed parameters in gnupg_usleep. Adding --debug-wait for dirmngr in daemon mode is required to test this change. GnuPG-bug-id: 3490 Signed-off-by: Werner Koch <wk@gnupg.org> (cherry picked from commit0cfdd3b57d
) Fixes-commit:1189df2cd7
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
1189df2cd7
commit
38eb7c360b
3 changed files with 15 additions and 5 deletions
|
@ -1203,6 +1203,14 @@ main (int argc, char **argv)
|
|||
current_logfile = xstrdup (logfile);
|
||||
}
|
||||
|
||||
if (debug_wait)
|
||||
{
|
||||
log_debug ("waiting for debugger - my pid is %u .....\n",
|
||||
(unsigned int)getpid());
|
||||
gnupg_sleep (debug_wait);
|
||||
log_debug ("... okay\n");
|
||||
}
|
||||
|
||||
#ifndef HAVE_W32_SYSTEM
|
||||
if (strchr (socket_name, ':'))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue