diff options
Diffstat (limited to 'source3/smbd/notify_kernel.c')
-rw-r--r-- | source3/smbd/notify_kernel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/smbd/notify_kernel.c b/source3/smbd/notify_kernel.c index c517254048..db823601f1 100644 --- a/source3/smbd/notify_kernel.c +++ b/source3/smbd/notify_kernel.c @@ -74,12 +74,17 @@ static void signal_handler(int signal, siginfo_t *info, void *unused) /**************************************************************************** -check if a change notify should be issued + Check if a change notify should be issued. + time zero means instantaneous check (used for hash). Ignore this (normal method + will be used instead). *****************************************************************************/ static BOOL kernel_check_notify(connection_struct *conn, uint16 vuid, char *path, uint32 flags, void *datap, time_t t) { struct change_data *data = (struct change_data *)datap; + if (!t) + return False; + if (data->directory_handle != (int)fd_pending) return False; DEBUG(3,("kernel change notify on %s fd=%d\n", path, (int)fd_pending)); |