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

The rselect function and timeout. #5

Open
sunhan-code opened this issue Nov 2, 2016 · 1 comment
Open

The rselect function and timeout. #5

sunhan-code opened this issue Nov 2, 2016 · 1 comment

Comments

@sunhan-code
Copy link

From the man page of the select() function, we can use the function as a subsecond precision timer. However, the rselect() does not support it and it seems it just returns an ENOMEM error. Is there any plan to support this?

Here is an extract from the man page.
Some code calls select() with all three sets empty, nfds zero, and a non-NULL timeout as a
fairly portable way to sleep with subsecond precision.

@shefty
Copy link
Member

shefty commented Nov 7, 2016

There are no plans to support this, but there's no objection to having it if a patch were submitted. I just don't have time to write one myself at the moment. The best option for an app today is to trap for this and call select directly.

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

No branches or pull requests

2 participants