From: Alan T. DeKok Date: Wed, 6 Dec 2017 16:52:55 +0000 (-0500) Subject: ignore DELETE events for the directory X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eaca7354e1fc2face1dcbe3d1a78725f89e93484;p=thirdparty%2Ffreeradius-server.git ignore DELETE events for the directory we didn't ask for them, but libkqueue delivers them to us --- diff --git a/src/modules/proto_detail/proto_detail_file.c b/src/modules/proto_detail/proto_detail_file.c index 01cba816ecd..2a7ec9d368d 100644 --- a/src/modules/proto_detail/proto_detail_file.c +++ b/src/modules/proto_detail/proto_detail_file.c @@ -438,6 +438,13 @@ static void mod_vnode_delete(fr_event_list_t *el, int fd, UNUSED int fflags, voi DEBUG("proto_detail (%s): Deleted %s", inst->name, inst->filename_work); + /* + * Silently ignore notifications from the directory. We + * didn't ask for them, but libkqueue delivers them to + * us. + */ + if (fd == inst->fd) return; + if (fd != inst->vnode_fd) { ERROR("Received DELETE for FD %d, when we were expecting one on FD %d - ignoring it", fd, inst->vnode_fd);