1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 0cfdd3b57d
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
Fixes-commit: 149041b0b917f4298239fe18b5ebd5ead71584a6
Signed-off-by: Werner Koch <wk@gnupg.org>
2017-11-15 15:31:52 +01:00
..
2017-04-28 10:06:33 +09:00
2015-10-28 10:20:17 +01:00
2017-04-28 10:06:33 +09:00
2015-11-17 12:50:22 +01:00
2017-04-28 10:06:33 +09:00
2017-03-30 16:13:43 +02:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00
2016-03-02 14:27:30 +01:00
2017-04-28 10:06:33 +09:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00
2017-02-21 13:11:46 -05:00
2017-01-05 20:43:40 +01:00
2017-02-21 13:11:46 -05:00
2017-09-27 09:33:14 +02:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.