Skip to content

Use fcntl(fd, F_GETFD) to check whether an fd is valid #90073

@tiran

Description

@tiran
BPO 45915
Nosy @vstinner, @tiran, @eryksun, @corona10
PRs
  • bpo-45915: use fcntl(fd, F_GETFD) in is_valid_fd() (GH-29821) #29821
  • bpo-45919: Use WinAPI GetFileType() in is_valid_fd() #30082
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2021-11-28.10:13:06.935>
    labels = ['expert-C-API', 'type-bug', '3.11']
    title = 'Use fcntl(fd, F_GETFD) to check whether an fd is valid'
    updated_at = <Date 2021-12-14.03:31:17.636>
    user = 'https://github.com/tiran'

    bugs.python.org fields:

    activity = <Date 2021-12-14.03:31:17.636>
    actor = 'eryksun'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['C API']
    creation = <Date 2021-11-28.10:13:06.935>
    creator = 'christian.heimes'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45915
    keywords = ['patch']
    message_count = 5.0
    messages = ['407197', '407217', '407222', '407224', '408514']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'christian.heimes', 'eryksun', 'corona10']
    pr_nums = ['29821', '30082']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45915'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixestopic-C-APItype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions