diff options
author | Werner Koch <[email protected]> | 2017-06-23 11:20:42 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-06-23 11:20:42 +0000 |
commit | 1ead1ca818bddabc3bca22c195be667993eb3e2e (patch) | |
tree | 5899fddd101a36ddbcd2176b1da5ac9c4d81bd4c /common/sysutils.h | |
parent | build: Add missing LIBASSUAN_CFLAGS to dirmngr/. (diff) | |
download | gnupg-1ead1ca818bddabc3bca22c195be667993eb3e2e.tar.gz gnupg-1ead1ca818bddabc3bca22c195be667993eb3e2e.zip |
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 <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/sysutils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/sysutils.h b/common/sysutils.h index ecd9f846e..e93ea2b1c 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -74,6 +74,7 @@ char *gnupg_getcwd (void); char *gnupg_get_socket_name (int fd); int gnupg_fd_valid (int fd); +gpg_error_t gnupg_inotify_watch_delete_self (int *r_fd, const char *fname); gpg_error_t gnupg_inotify_watch_socket (int *r_fd, const char *socket_name); int gnupg_inotify_has_name (int fd, const char *name); |