1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-12 21:58:50 +01:00
gnupg/agent
Werner Koch 2f7d4c38c9
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 <wk@gnupg.org>
2016-10-15 21:35:05 +02:00
..
agent.h agent: Fix long standing regression tracking the connection count. 2016-08-06 10:15:47 +02:00
cache.c agent: Fix passphrase cache lookups. 2016-07-18 12:51:38 +02:00
call-pinentry.c agent: New option --pinentry-timeout 2016-01-20 11:22:44 +01:00
call-scd.c agent: invoke scdaemon with --homedir. 2016-09-02 13:41:19 +09:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
command-ssh.c Fix more spelling 2016-09-17 16:00:37 +09:00
command.c Fix more spelling 2016-09-17 16:00:37 +09:00
cvt-openpgp.c agent: SSH support improvement. 2016-08-09 11:42:20 +09:00
cvt-openpgp.h agent: IMPORT_KEY with --force option fix. 2015-12-24 14:19:53 +09:00
divert-scd.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
findkey.c common: Add dedicated private key functions to name-value.c. 2016-06-23 13:17:25 +02:00
genkey.c agent: Implement new protection mode openpgp-s2k3-ocb-aes. 2016-04-12 14:38:44 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: Move inotify code to common and improve it. 2016-10-15 21:35:05 +02:00
keyformat.txt Fix more spelling 2016-09-17 16:00:37 +09:00
learncard.c Fix spelling and grammar. 2016-08-03 16:54:01 +02:00
Makefile.am build: Fix build against libiconv. 2016-09-30 17:45:59 +02:00
pkdecrypt.c agent: Replace some sprintf. 2014-12-02 14:13:53 +01:00
pksign.c agent: Allow only specific digest size for ECDSA. 2016-09-27 14:01:18 +09:00
preset-passphrase.c Call log_set_prefix() with human-readable labels. 2016-08-12 12:16:19 +02:00
protect-tool.c Fix comment and format. 2016-09-17 16:16:41 +09:00
protect.c build: Require latest released libraries 2016-07-14 10:48:34 +02:00
t-protect.c agent: Implement new protection mode openpgp-s2k3-ocb-aes. 2016-04-12 14:38:44 +02:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c Replace use of opt.homedir by accessor functions. 2016-06-07 10:59:46 +02:00
w32main.c Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00