Skip to content

closefrom check is too strict #112970

Closed
Closed

Description

@thesamesam

Bug report

Bug description:

closefrom(3) is available with >=glibc-2.34 on Linux (and Hurd, but, well...)

The check in Python/fileutils.c is a bit too strict, as it hardcodes FreeBSD. This excludes both the aforementioned systems but also other BSDs where I believe it's available.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

  1. added 2 commits that reference this issue on Dec 11, 2023
  2. thesamesam commented on Dec 11, 2023

    @thesamesam
    ContributorAuthor

    We noticed this when poking at a swarm of close calls on an older kernel.

  3. added a commit that references this issue on Dec 12, 2023
  4. erlend-aasland commented on Dec 12, 2023

    @erlend-aasland
    Contributor
  5. added a commit that references this issue on Feb 11, 2024
  6. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions