Menu

#337 Unable to disable file watching when using kqueue backend [patch provided]

v1.0 (example)
open
nobody
None
5
2021-10-11
2021-10-11
Edd Barrett
No

Hi,

I believe that the inotify config variable is being ignored for systems that use kqueue (e.g. the bsds).

Since kqueue can't do recursive watches, every individual file must be watched and this can consume a lot of file descriptors. When serving lots of files, you may have to change the fd limits to allow for more files (in the kernel and/or the ulimits), or you can instead disable watching by setting inotify=no in the config file.

However, it seems that this variable is being ignored.

I posted a patch which I believe fixes this to the OpenBSD ports mailing list:
https://marc.info/?l=openbsd-ports&m=163371896701149&w=2

See patches/patch-minidlna_c. The rest is unrelated ports-tree stuff.

Thanks

Discussion


Log in to post a comment.

MongoDB Logo MongoDB