summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-05-27 18:19:59 +0200
committerJakub Hrozek <jhrozek@redhat.com>2017-02-15 14:51:36 +0100
commit8cfb42e1985550e99585d311f68087d414932806 (patch)
tree411ab877f19e5f4535948cab6f0916c4da0af906 /src/external
parent50c740cbc2bb27cbe488fa8587e2901b8b85cf87 (diff)
downloadsssd-8cfb42e1985550e99585d311f68087d414932806.tar.gz
sssd-8cfb42e1985550e99585d311f68087d414932806.tar.xz
sssd-8cfb42e1985550e99585d311f68087d414932806.zip
UTIL: Add a generic inotify module
Adds a reusable module for watching files using the Linux-specific inotify(7) interface. Adds the possibility to watch the file's parent directory as well to make it possible to watch moves into the directory and allow watching file that doesn't exist at the time the watch is created. This interface is needed to implement the files provider, so this commit is related to: https://fedorahosted.org/sssd/ticket/2228 Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/external')
-rw-r--r--src/external/inotify.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/src/external/inotify.m4 b/src/external/inotify.m4
index 25259a817..3ae5ae314 100644
--- a/src/external/inotify.m4
+++ b/src/external/inotify.m4
@@ -29,4 +29,6 @@ int main () {
AS_IF([test x"$inotify_works" = xyes],
[AC_DEFINE_UNQUOTED([HAVE_INOTIFY], [1], [Inotify works])])
AC_SUBST(INOTIFY_LIBS)
+
+ AM_CONDITIONAL([HAVE_INOTIFY], [test x"$inotify_works" = xyes])
])