diff --git a/agent/ChangeLog b/agent/ChangeLog index eb80654a5..ce1fdccd8 100644 --- a/agent/ChangeLog +++ b/agent/ChangeLog @@ -1,3 +1,8 @@ +2010-12-02 Werner Koch + + * gpg-agent.c (CHECK_OWN_SOCKET_INTERVAL) [W32CE]: Set to 60 + seconds. + 2010-11-29 Werner Koch * cache.c (initialize_module_cache): Factor code out to ... diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 92a26eb1e..ca150b471 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -195,20 +195,20 @@ static ARGPARSE_OPTS opts[] = { /* 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. */ -#ifdef HAVE_W32_SYSTEM -#define TIMERTICK_INTERVAL (4) + 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. */ +#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) /* Seconds. */ +# define TIMERTICK_INTERVAL (2) +# define CHECK_OWN_SOCKET_INTERVAL (60) #endif -/* How often shall we check our own socket in standard socket mode. - If that value is 0 we don't check at all. */ -#ifdef HAVE_W32_SYSTEM -# define CHECK_OWN_SOCKET_INTERVAL (0) -#else -# define CHECK_OWN_SOCKET_INTERVAL (60) /* Seconds. */ -#endif /* The list of open file descriptors at startup. Note that this list has been allocated using the standard malloc. */