using two inotify sockets

Werner Koch wk at
Mon Aug 7 17:04:56 CEST 2017

On Mon,  7 Aug 2017 09:23, dkg at said:

> 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
> locations.

 - First, because it is easier to implement and is less likely to break
   working things.

 - Second, inotify may fail in certain cases.  In particular for the
   socket removal detection we need to read the events
   (gnupg_inotify_has_name) and that is not fully free of races on the
   kernel level.  OTOH, the homedir notification is much easier.  There
   will be only one event and so we immeditely know when the directory
   has been removed.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: </pipermail/attachments/20170807/b9ba304e/attachment.sig>

More information about the Gnupg-devel mailing list