1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-02 12:01:32 +01:00
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
..
2016-09-17 16:00:37 +09:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2016-09-17 16:00:37 +09:00
2015-12-21 11:37:21 +01:00
2016-06-28 18:21:50 +02:00
2015-10-28 10:20:17 +01:00
2015-11-17 12:50:22 +01:00
2016-07-26 14:49:02 +02:00
2016-08-03 15:27:13 +02:00
2016-09-05 14:05:19 +02:00
2016-06-28 15:53:59 +02:00
2013-11-18 14:09:47 +01:00
2015-11-17 12:50:22 +01:00
2016-08-03 16:55:33 +02:00
2015-11-17 12:50:22 +01:00
2016-08-03 16:55:33 +02:00
2016-08-03 16:55:33 +02:00
2015-11-17 12:50:22 +01:00
2016-09-30 17:45:59 +02:00
2015-03-17 09:18:23 +01:00
2016-03-02 14:27:30 +01:00
2016-09-17 16:00:37 +09:00
2015-11-17 12:50:22 +01:00
2016-08-13 13:49:41 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2015-11-17 12:50:22 +01:00
2016-06-28 18:21:50 +02:00
2016-06-28 18:21:50 +02:00
2014-11-11 15:14:31 +01:00
2015-11-17 12:50:22 +01:00
2016-08-25 15:16:32 +02:00
2016-08-03 15:27:13 +02:00
2015-02-03 09:12:45 +01:00
2015-10-30 12:33:40 +01:00

Common functionality used by all modules of GnuPG.