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

Only check for ENOSPC on inotify_add_watch #330

Merged
merged 1 commit into from Jun 8, 2021
Merged

Commits on Jun 4, 2021

  1. Only check for ENOSPC on inotify_add_watch

    According to the inotify documentation, the only function that returns
    ENOSPC is `inotify_add_watch`, so this moves the check for this error
    code to the `inotify.add_watch()` call point. This makes sure someone
    using a different watcher like PollWatcher on linux won't reinterpret
    this error.
    
    Also, this uses `libc::ENOSPC` instead of `28` because it's easier to
    interpret from the inotify documentation.
    erickt committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    1749566 View commit details
    Browse the repository at this point in the history