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

Remove pselect() from code base #410

Open
bakerstu opened this issue Jul 28, 2020 · 0 comments
Open

Remove pselect() from code base #410

bakerstu opened this issue Jul 28, 2020 · 0 comments

Comments

@bakerstu
Copy link
Owner

pselect() is a POSIX function which in reality is not very portable. Even when present, it has a race condition on some systems due to the way in which it is implemented. pselect() should be replaced with select() and a pipe for asynchronous wakeup from other threads.

Here is are several links detailing pselect issues on Mac OS X, for example:

https://stackoverflow.com/questions/14045801/different-pselect-behaviour-on-osx-vs-linux
https://news.ycombinator.com/item?id=12867456

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

No branches or pull requests

1 participant