housekeeping_thread (void *arg)
{
static int sentinel;
- time_t curtime;
- struct server_control_s ctrlbuf;
(void)arg;
- curtime = gnupg_get_time ();
if (sentinel)
{
log_info ("housekeeping is already going on\n");
if (opt.verbose > 1)
log_info ("starting housekeeping\n");
- memset (&ctrlbuf, 0, sizeof ctrlbuf);
- dirmngr_init_default_ctrl (&ctrlbuf);
-
- ks_hkp_housekeeping (curtime);
- if (network_activity_seen)
- {
- network_activity_seen = 0;
- if (opt.use_tor || opt.allow_version_check)
- dirmngr_load_swdb (&ctrlbuf, 0);
- }
-
- dirmngr_deinit_default_ctrl (&ctrlbuf);
-
if (opt.verbose > 1)
log_info ("ready with housekeeping\n");
sentinel--;