-
-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inotify] Use of
select.poll()
instead of deprecated `select.selec…
…t()` (#1078) * Use `select.poll()` if available. Details: As stated in the `select()` man page: ``` WARNING: select() can monitor only file descriptors numbers that are less than FD_SETSIZE (1024)—an unreasonably low limit for many modern applications—and this limitation will not change. ``` This can lead to `ValueError: filedescriptor out of range in select()` when using watchdog. Following the advice of the `select()` man page, we use `select.poll()` instead, if available. The call to `select()` used as a fallback. * Add changelog entry for `select.poll()` usage. * Add a unit-test to ensure that we can handle file descriptors >1024.
- Loading branch information
Showing
3 changed files
with
54 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters