mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
46c4333c37
commit
650356148a
2 changed files with 82 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue