On 2023/02/09 12:31, Joel Carnat wrote: > > While I was there, I had a look at FreeBSD ports tree. > They don't seem to apply inotify modifications on their side. > https://cgit.freebsd.org/ports/tree/x11/xfce4-docklike-plugin/Makefile > > Not sure why it would work as-is on FreeBSD and not OpenBSD. I mean, > don't both OS use the same glib sets?
libinotify emulates the inotify api using kqueue, but it's quite resource intensive, it needs one FD per file within a monitored directory. FreeBSD installs it in in a location on the default library search path, we have it tucked away a bit more so that generally a port will need patching to explicitly use it rather than just picking it up. I suppose they have larger default FD limits and as a result are probably less concerned about software exhausting them.