Changeset View
Changeset View
Standalone View
Standalone View
b/dirmngr/dirmngr.c
Context not available. | |||||
housekeeping_thread (void *arg) | housekeeping_thread (void *arg) | ||||
{ | { | ||||
static int sentinel; | static int sentinel; | ||||
struct server_control_s ctrlbuf; | |||||
(void)arg; | (void)arg; | ||||
Context not available. | |||||
if (opt.verbose > 1) | if (opt.verbose > 1) | ||||
log_info ("starting housekeeping\n"); | log_info ("starting housekeeping\n"); | ||||
memset (&ctrlbuf, 0, sizeof ctrlbuf); | |||||
dirmngr_init_default_ctrl (&ctrlbuf); | |||||
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) | if (opt.verbose > 1) | ||||
log_info ("ready with housekeeping\n"); | log_info ("ready with housekeeping\n"); | ||||
sentinel--; | sentinel--; | ||||
Context not available. |