Well if my reading is correct, the housekeeping happens in handle_tick(). 3
things are happening:
- Checks for lost parent. This could be converted to a signal (at least on
linux)
- Checks for socket permissions. This is checked only every 60 seconds, so we
don't need to wake up every two seconds to check it.
- Checks for lost connection to scdaemon... does this have to happen so
frequently?
dirmngr also seems to wake up often to check the if it's time to do housekeeping
(which it does every 10 minutes). Seems like this could also be improved?
scdaemon does seem harder, but not everyone is using smartcards.