summaryrefslogtreecommitdiff
path: root/source3/smbd/notify_kernel.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-02-13 04:07:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:05 -0500
commit8fbdd112b2c69a54d05807163bfc52b34f4d0424 (patch)
tree838fb54ed67656e49ac9f2780b5b2ae4d0eaa8b2 /source3/smbd/notify_kernel.c
parent71247a2f0507d13fa37d5b3c7136e299995af877 (diff)
downloadsamba-8fbdd112b2c69a54d05807163bfc52b34f4d0424.tar.gz
samba-8fbdd112b2c69a54d05807163bfc52b34f4d0424.tar.bz2
samba-8fbdd112b2c69a54d05807163bfc52b34f4d0424.zip
r13482: Push the FAM notification file descriptor into the select
set to avoid unnecessary polling. (This used to be commit 1dce945ccbba25092cf54890301c8f78f8aede33)
Diffstat (limited to 'source3/smbd/notify_kernel.c')
-rw-r--r--source3/smbd/notify_kernel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/notify_kernel.c b/source3/smbd/notify_kernel.c
index 02abe0b4b6..0c20effc3d 100644
--- a/source3/smbd/notify_kernel.c
+++ b/source3/smbd/notify_kernel.c
@@ -232,6 +232,7 @@ struct cnotify_fns *kernel_notify_init(void)
cnotify.check_notify = kernel_check_notify;
cnotify.remove_notify = kernel_remove_notify;
cnotify.select_time = -1;
+ cnotify.notification_fd = -1;
/* the signal can start off blocked due to a bug in bash */
BlockSignals(False, RT_SIGNAL_NOTIFY);