Home GnuPG
Diffusion GnuPG d50c2eff8d69

agent,dirmngr: Check for homedir removal also using stat(2).

Description

agent,dirmngr: Check for homedir removal also using stat(2).

* agent/gpg-agent.c (have_homedir_inotify): New var.
(reliable_homedir_inotify): New var.
(main):  Set reliable_homedir_inotify.
(handle_tick): Call stat on the homedir.
(handle_connections): Mark availibility of the inotify watch.
* dirmngr/dirmngr.c (handle_tick): Call stat on the homedir.
(TIMERTICK_INTERVAL_SHUTDOWN): New.
(handle_connections): Depend tick interval on the shutdown state.

The stat call is used on systems which do not support inotify and also
when we assume that the inotify does not work reliable.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jul 26 2017, 10:02 AM
Parents
rGf4ec7697a9c2: agent: Lengthen timertick interval on Unix to 4 seconds.
Branches
Unknown
Tags
Unknown