forked from NixOS/nixops
-
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.
Replace use of select() by poll(). Fixes NixOS#798.
`select()` only works with FD numbers <= 1023. Since we have no explicit control over FD numbers, `select()` can fail when there are many files open. This commit uses `poll()` instead, which doesn't suffer from this restriction. `poll()` doesn't work on Windows, but that's not a supported platform for Nixops anyway.
- Loading branch information
Showing
1 changed file
with
32 additions
and
1 deletion.
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