process accumulation when using ephemeral homedirs

Daniel Kahn Gillmor dkg at
Thu Sep 1 23:24:39 CEST 2016

On Thu 2016-09-01 16:27:34 -0400, Werner Koch wrote:
> On Thu,  1 Sep 2016 19:07, dkg at said:
>> On a system with a kernel that supports inotify (any modern linux), we
>> could have dirmngr watch its own socket and terminate if it disappears.
> Actually gpg-agent does this for many years and terminates itself if
> another gpg-agent process has taken over the socket.  This was required
> due to a race on Windows but the code works on Unix as well.
> It is check_own_socket_thread which is triggered every minute.  The code
> can actually be put into common/ so that it can be reused by dirmngr.

That sounds reasonable on platforms where inotify isn't available, but
it seems like inotify would be a better choice on platforms that support

Would you be up for a patch for inotify support so that dirmngr can
disappear immediately when its homedir does on those platforms?


More information about the Gnupg-devel mailing list