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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index df3d45d20b..b2d0fc3326 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -206,6 +206,15 @@ BOOL change_notify_set(char *inbuf, files_struct *fsp, connection_struct *conn,
return True;
}
+int change_notify_fd(void)
+{
+ if (cnotify) {
+ return cnotify->notification_fd;
+ }
+
+ return -1;
+}
+
/****************************************************************************
Initialise the change notify subsystem.
****************************************************************************/