• Victor Stinner's avatar
    Fix race condition in create_stdio() · 676b7773
    Victor Stinner authored
    Issue #24891: Fix a race condition at Python startup if the file descriptor
    of stdin (0), stdout (1) or stderr (2) is closed while Python is creating
    sys.stdin, sys.stdout and sys.stderr objects. These attributes are now set
    to None if the creation of the object failed, instead of raising an OSError
    exception. Initial patch written by Marco Paolini.
    676b7773
ACKS 22.3 KB