dirmngr: Terminate on deletion of the socket file (Linux only).
authorWerner Koch <wk@gnupg.org>
Wed, 7 Sep 2016 10:36:48 +0000 (12:36 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 7 Sep 2016 10:36:48 +0000 (12:36 +0200)
commit6308c300196ae85fd82ed383217219e0206640a4
tree579479e5ee720c300166b8453d4ff7e55428127b
parentbde29a46cedbbd2a5dfe7c91a6277c0a4ff50825
dirmngr: Terminate on deletion of the socket file (Linux only).

* dirmngr/dirmngr.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h.
(oDisableCheckOwnSocket): New.
(opts): Add --disable-check-own-socket.
(disable_check_own_socket): New var.
(parse_rereadable_options): Set that var.
(my_inotify_is_name) [HAVE_INOTIFY_INIT]: New.
(handle_connections) [HAVE_INOTIFY_INIT]: New.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/dirmngr.c
doc/dirmngr.texi