forked from Canop/xterm-query
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use polling syscall directly to fix MacOS support
On MacOS, `poll` and `kqueue` are not supported for tty[1]. So let's ditch mio completely and directly call `select` ourselves. On non-MacOS, we use `poll` to avoid limitation of `select` that is limited to FDs below 1024. If the process has a lot of open FDs, we could end up with an FD higher than 1023 and get an error. This fixes MacOS support. [1]: tokio-rs/mio#1377
- Loading branch information
Showing
2 changed files
with
50 additions
and
16 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