From 650356148af43ea619bec12e599a4981b147d5f8 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 6 Sep 2016 10:53:45 +0200 Subject: agent: Terminate on deletion of the socket file (Linux only). * configure.ac (AC_CHECK_FUNCS): Chec for inotify_init. * agent/gpg-agent.c [HAVE_INOTIFY_INIT]: Include sys/inotify.h. (my_inotify_is_name) [HAVE_INOTIFY_INIT]: New. (handle_connections) [HAVE_INOTIFY_INIT]: New. Signed-off-by: Werner Koch --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index bd24ea441..b16f83746 100644 --- a/configure.ac +++ b/configure.ac @@ -1388,6 +1388,14 @@ AC_CHECK_FUNCS([memicmp stpcpy strsep strlwr strtoul memmove stricmp strtol \ flockfile funlockfile getpwnam getpwuid \ getenv inet_pton strpbrk]) +# See whether libc supports the Linux inotify interface +case "${host}" in + *-*-linux*) + AC_CHECK_FUNCS([inotify_init]) + ;; +esac + + if test "$have_android_system" = yes; then # On Android ttyname is a stub but prints an error message. AC_DEFINE(HAVE_BROKEN_TTYNAME,1, -- cgit v1.2.3