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

select: simplify return code handling for poll and select #5880

Closed
wants to merge 1 commit into from

Commits on Aug 28, 2020

  1. select: simplify return code handling for poll and select

    poll and select already return -1 on error according to POSIX,
    so there is no need to perform a <0 to -1 conversion in code.
    
    Also we can just use one check with <= 0 on the return code.
    
    Assisted-by: Daniel Stenberg
    
    Replaces curl#5852
    mback2k committed Aug 28, 2020
    Configuration menu
    Copy the full SHA
    62e776f View commit details
    Browse the repository at this point in the history