summaryrefslogtreecommitdiff
path: root/source3/smbd/notify_inotify.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-27 12:20:18 +0200
committerVolker Lendecke <vl@samba.org>2009-06-27 12:25:01 +0200
commit79c299f96fe1780c0ca09d2ed429a2640ec56744 (patch)
tree808ac30a24a07157ac16198761578fdaf579fc5c /source3/smbd/notify_inotify.c
parent0fb027565780eb225806893c8292bf9c2301fc1e (diff)
downloadsamba-79c299f96fe1780c0ca09d2ed429a2640ec56744.tar.gz
samba-79c299f96fe1780c0ca09d2ed429a2640ec56744.tar.bz2
samba-79c299f96fe1780c0ca09d2ed429a2640ec56744.zip
Stop listening for inotify data when there's none
There have been some reports that we're flooding syslog with "No data on inotify fd?!". I haven't been able to reproduce this yet. Until then, it is better to just list this message once.
Diffstat (limited to 'source3/smbd/notify_inotify.c')
-rw-r--r--source3/smbd/notify_inotify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c
index a80927b830..26570a2216 100644
--- a/source3/smbd/notify_inotify.c
+++ b/source3/smbd/notify_inotify.c
@@ -241,6 +241,7 @@ static void inotify_handler(struct event_context *ev, struct fd_event *fde,
if (ioctl(in->fd, FIONREAD, &bufsize) != 0 ||
bufsize == 0) {
DEBUG(0,("No data on inotify fd?!\n"));
+ TALLOC_FREE(fde);
return;
}