From: Alan T. DeKok Date: Wed, 8 Nov 2017 18:45:44 +0000 (-0500) Subject: add NOTE_NONE to trigger EVFILT_READ on files X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8f42660fc33d2f95524e508c66d5bd20e8435c8;p=thirdparty%2Ffreeradius-server.git add NOTE_NONE to trigger EVFILT_READ on files i.e. lseek() to start of file, EVFILT_READ won't trigger without this. --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index 887a50ba230..991ed235542 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -111,7 +111,11 @@ static fr_event_func_map_t io_func_map[] = { .name = "read", .filter = EVFILT_READ, .flags = EV_ADD | EV_ENABLE, +#ifdef NOTE_NONE + .fflags = NOTE_NONE, +#else .fflags = 0, +#endif .type = FR_EVENT_FD_SOCKET | FR_EVENT_FD_FILE | FR_EVENT_FD_PCAP }, {