summaryrefslogtreecommitdiff
path: root/source3/smbd/notify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-21 16:05:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:21 -0500
commit420e577004cdb9e00d290d3681df3b3196336d81 (patch)
treec4835d58cf03178f57a6c1ac413d8e9869397c5f /source3/smbd/notify.c
parentd5206610cd67f88e2cc7d5b2b434e320e81c29d5 (diff)
downloadsamba-420e577004cdb9e00d290d3681df3b3196336d81.tar.gz
samba-420e577004cdb9e00d290d3681df3b3196336d81.tar.bz2
samba-420e577004cdb9e00d290d3681df3b3196336d81.zip
r20932: This is the basic infrastructure for inotify support. This is far from being
complete, in particular the various mask bits are not correctly supported yet. Checkin in now, I want to see how the build farm likes it. Volker (This used to be commit c9a5d011a91359b242f6c26f46e96ecea6a44a3b)
Diffstat (limited to 'source3/smbd/notify.c')
-rw-r--r--source3/smbd/notify.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index ce7680b49a..2493dea9ef 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -527,6 +527,11 @@ BOOL init_change_notify(void)
{
cnotify = NULL;
+#if HAVE_INOTIFY
+ if ((cnotify == NULL) && lp_kernel_change_notify()) {
+ cnotify = inotify_notify_init(smbd_event_context());
+ }
+#endif
#if HAVE_KERNEL_CHANGE_NOTIFY
if (cnotify == NULL && lp_kernel_change_notify())
cnotify = kernel_notify_init(smbd_event_context());