Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle BSD Too many open files in system (os error 23) #455

Open
0xpr03 opened this issue Nov 23, 2022 · 3 comments
Open

Handle BSD Too many open files in system (os error 23) #455

0xpr03 opened this issue Nov 23, 2022 · 3 comments

Comments

@0xpr03
Copy link
Member

0xpr03 commented Nov 23, 2022

We currently handle inotify limits.

We should also handle this for BSD as code 23. Not sure if this is with kqueue, and where exactly this error comes up. Would need a BSD person to check this.

Origin: extrawurst/gitui#1439

@mqudsi
Copy link

mqudsi commented Jul 8, 2024

It's an error with kqueue (or the kqueue implementation) and I received it on macOS as well when I was using RecommendedWatcher with features = [ "macos_kqueue" ]. The file limit seems relatively low, as I experienced this with a directory with "only" 28,850 files/entries across its descendants.

@0xpr03
Copy link
Member Author

0xpr03 commented Jul 8, 2024

Note that every folder counts too. It is an inode limit enforced by the OS which we can only gracefully hand to the user of the lib.

@mqudsi
Copy link

mqudsi commented Jul 8, 2024

The count included folders as well, fwiw. Edit: Or maybe not, I’d have to double check.

I imagine it’s possible to paper around this by watching the root directly non-recursively and child directories recursively individually but almost certainly out of scope for the crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants