summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-12 02:01:53 +0000
committerJeremy Allison <jra@samba.org>2002-12-12 02:01:53 +0000
commit120ead2f941810aed1387c7ed6b74fea0eb2f865 (patch)
tree147a51ec0569d7586cc449b19238aa21368f2efc /source3/smbd
parent7dd847ba9c10be196b5d02f9593c642666855470 (diff)
downloadsamba-120ead2f941810aed1387c7ed6b74fea0eb2f865.tar.gz
samba-120ead2f941810aed1387c7ed6b74fea0eb2f865.tar.bz2
samba-120ead2f941810aed1387c7ed6b74fea0eb2f865.zip
Added "kernel change notify" boolean to allow easier valgrind testing.
Jeremy. (This used to be commit ac856fbb96e5ed21992972805b27cc8c3f9377df)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/notify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index 0895ddaf87..de1b331778 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -207,7 +207,8 @@ BOOL change_notify_set(char *inbuf, files_struct *fsp, connection_struct *conn,
BOOL init_change_notify(void)
{
#if HAVE_KERNEL_CHANGE_NOTIFY
- cnotify = kernel_notify_init();
+ if (lp_kernel_change_notify())
+ cnotify = kernel_notify_init();
#endif
if (!cnotify) cnotify = hash_notify_init();