[Pkg-gnupg-commit] [gnupg2] 156/185: agent: Lengthen timertick interval on Unix to 4 seconds.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Aug 7 11:55:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit f4ec7697a9c2d7587794d3bd75efbb0b51d6562f
Author: Werner Koch <wk at gnupg.org>
Date: Wed Jul 26 09:55:51 2017 +0200
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 at gnupg.org>
---
agent/gpg-agent.c | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 36c05bc..2906cc3 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list