summaryrefslogtreecommitdiff
path: root/source3/smbd/notify.c
diff options
context:
space:
mode:
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());