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

gh-102179: Fix os.dup2() error reporting for negative fds #102180

Merged
merged 3 commits into from
Mar 4, 2023

Commits on Feb 23, 2023

  1. pythongh-102179: Fix os.dup2() error reporting for negative fds

    A remnant of old code manually checks the sign of fds, but doesn't set
    errno before raising OSError:
    ```
    >>> os.dup2(-1, 0)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      OSError: [Errno 0] Error
    ```
    Remove the manual check altogether: the C library functions used to
    implement os.dup2() check fd validity anyway.
    izbyshev committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    411107d View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Configuration menu
    Copy the full SHA
    01df936 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2023

  1. Configuration menu
    Copy the full SHA
    c32ea70 View commit details
    Browse the repository at this point in the history