1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

agent: Lengthen timertick interval on Unix to 4 seconds.

* agent/gpg-agent.c (TIMERTICK_INTERVAL): Same value for Windows and
Unix.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2017-07-26 09:55:51 +02:00
parent 24c7aa0d58
commit f4ec7697a9
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -276,19 +276,17 @@ static struct debug_flags_s debug_flags [] =
#define MIN_PASSPHRASE_NONALPHA (1) #define MIN_PASSPHRASE_NONALPHA (1)
#define MAX_PASSPHRASE_DAYS (0) #define MAX_PASSPHRASE_DAYS (0)
/* The timer tick used for housekeeping stuff. For Windows we use a /* The timer tick used for housekeeping stuff. Note that on Windows
longer period as the SetWaitableTimer seems to signal earlier than * we use a SetWaitableTimer seems to signal earlier than about 2
the 2 seconds. CHECK_OWN_SOCKET_INTERVAL defines how often we * seconds. Thus we use 4 seconds on all platforms except for
check our own socket in standard socket mode. If that value is 0 * Windowsce. CHECK_OWN_SOCKET_INTERVAL defines how often we check
we don't check at all. All values are in seconds. */ * our own socket in standard socket mode. If that value is 0 we
* don't check at all. All values are in seconds. */
#if defined(HAVE_W32CE_SYSTEM) #if defined(HAVE_W32CE_SYSTEM)
# define TIMERTICK_INTERVAL (60) # define TIMERTICK_INTERVAL (60)
# define CHECK_OWN_SOCKET_INTERVAL (0) /* Never */ # define CHECK_OWN_SOCKET_INTERVAL (0) /* Never */
#elif defined(HAVE_W32_SYSTEM)
# define TIMERTICK_INTERVAL (4)
# define CHECK_OWN_SOCKET_INTERVAL (60)
#else #else
# define TIMERTICK_INTERVAL (2) # define TIMERTICK_INTERVAL (4)
# define CHECK_OWN_SOCKET_INTERVAL (60) # define CHECK_OWN_SOCKET_INTERVAL (60)
#endif #endif