using two inotify sockets
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Aug 7 09:23:35 CEST 2017
I've noticed that gpg-agent is now using two inotify sockets instead of
one, as of this commit:
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
(handle_connections): Add home_inotify_fd to watch the home directory.
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 at gnupg.org>
It's not clear to me what the advantage is of having two inotify sockets
instead of having a single inotify socket which is watching multiple
I'm inclined to write a patch to simplify it to use only one inotify
socket, but if there's a reason to use two that i'm unaware of i'd
rather hear about it before i make the changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 832 bytes
Desc: not available
More information about the Gnupg-devel