agent: Shutdown on removal of the home directory.
authorWerner Koch <wk@gnupg.org>
Fri, 23 Jun 2017 11:20:42 +0000 (13:20 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 23 Jun 2017 11:20:42 +0000 (13:20 +0200)
commit1ead1ca818bddabc3bca22c195be667993eb3e2e
tree5899fddd101a36ddbcd2176b1da5ac9c4d81bd4c
parent815ecdf08a4285c75892cf9ab72feb13f3bcf590
agent: Shutdown on removal of the home directory.

* common/sysutils.c (gnupg_inotify_watch_delete_self): New.
* agent/gpg-agent.c (handle_connections): Rename my_inotify_fd to
sock_inotify_fd.
(handle_connections): Add home_inotify_fd to watch the home directory.
--

GnuPG-bug-id: 3218

Note that we should add this also to dirmngr.  And for non-Linux
systems a stat in ticker should be implemented.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c
common/sysutils.c
common/sysutils.h