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

Poll loop fixes #11624

Merged
merged 2 commits into from
Mar 20, 2023
Merged

Poll loop fixes #11624

merged 2 commits into from
Mar 20, 2023

Commits on Jan 25, 2023

  1. Fix incorrect comment.

    The event loop uses poll(2), not select(2).
    vext01 committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    493ca33 View commit details
    Browse the repository at this point in the history
  2. Set non-blocking IO more robustly.

     - Check for errors.
     - Add O_NONBLOCK on top of any existing flags.
    
    set_nonblock() is adapted from lang_tester:
    https://github.com/softdevteam/lang_tester/blob/e01072a0a4c5e37f2e585c48efffcf540cd7b6a4/src/tester.rs#L1041-L1048
    vext01 committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    5c3825f View commit details
    Browse the repository at this point in the history