diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-27 12:20:18 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-27 12:25:01 +0200 |
commit | 79c299f96fe1780c0ca09d2ed429a2640ec56744 (patch) | |
tree | 808ac30a24a07157ac16198761578fdaf579fc5c /source3 | |
parent | 0fb027565780eb225806893c8292bf9c2301fc1e (diff) | |
download | samba-79c299f96fe1780c0ca09d2ed429a2640ec56744.tar.gz samba-79c299f96fe1780c0ca09d2ed429a2640ec56744.tar.xz 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')
-rw-r--r-- | source3/smbd/notify_inotify.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c index a80927b830f..26570a22162 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; } |