aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf-comp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-10-15 19:35:05 +0000
committerWerner Koch <[email protected]>2016-10-15 19:35:05 +0000
commit2f7d4c38c9e7bcc14e6e0bf219d688c40a4afecb (patch)
tree5b8d91c526f29c50a24c17492dc807ad9f3ee6f4 /tools/gpgconf-comp.c
parentdirmngr: use gnupg_mkdtemp instead of mkstemp (diff)
downloadgnupg-2f7d4c38c9e7bcc14e6e0bf219d688c40a4afecb.tar.gz
gnupg-2f7d4c38c9e7bcc14e6e0bf219d688c40a4afecb.zip
agent: Move inotify code to common and improve it.
* common/sysutils.c: Include sys/inotify.h. (my_error_from_syserror, my_error): New. (gnupg_inotify_watch_socket): New. (gnupg_inotify_has_name): New. * agent/gpg-agent.c: Do not include sys/inotify.h. (my_inotify_is_name): Remove. (handle_connections): Remove HAVE_INOTIFY_INIT protected code and use the new functions. -- When removing not a simple socket file but the entire directory the old code missed most events and thus did not worked properly. IN_DELETE_SELF has also been added to the watch list to detect a removal of the directory. However, in all tests that event was not triggered. The only way it could be triggered was by not watching the socket dir but an arbitary directory and rmdir that. GnuPG-bug-id: 2756 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions