diff options
author | Werner Koch <[email protected]> | 2017-07-26 07:55:51 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-26 08:03:04 +0000 |
commit | f4ec7697a9c2d7587794d3bd75efbb0b51d6562f (patch) | |
tree | e9b9623664363380d6e4dc1a98e8718db530f165 /agent/gpg-agent.c | |
parent | common: Strip trailing slashes from the homedir. (diff) | |
download | gnupg-f4ec7697a9c2d7587794d3bd75efbb0b51d6562f.tar.gz gnupg-f4ec7697a9c2d7587794d3bd75efbb0b51d6562f.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | agent/gpg-agent.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 36c05bcf1..2906cc370 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -276,19 +276,17 @@ static struct debug_flags_s debug_flags [] = #define MIN_PASSPHRASE_NONALPHA (1) #define MAX_PASSPHRASE_DAYS (0) -/* The timer tick used for housekeeping stuff. For Windows we use a - longer period as the SetWaitableTimer seems to signal earlier than - the 2 seconds. CHECK_OWN_SOCKET_INTERVAL defines how often we - check our own socket in standard socket mode. If that value is 0 - we don't check at all. All values are in seconds. */ +/* The timer tick used for housekeeping stuff. Note that on Windows + * we use a SetWaitableTimer seems to signal earlier than about 2 + * seconds. Thus we use 4 seconds on all platforms except for + * Windowsce. CHECK_OWN_SOCKET_INTERVAL defines how often we check + * 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) # define TIMERTICK_INTERVAL (60) # define CHECK_OWN_SOCKET_INTERVAL (0) /* Never */ -#elif defined(HAVE_W32_SYSTEM) -# define TIMERTICK_INTERVAL (4) -# define CHECK_OWN_SOCKET_INTERVAL (60) #else -# define TIMERTICK_INTERVAL (2) +# define TIMERTICK_INTERVAL (4) # define CHECK_OWN_SOCKET_INTERVAL (60) #endif |