Skip to content

CYGWIN supports "/dev/fd" for listing the set of file descriptors open in a process. #148575

Description

@carlo-bramini

Bug report

Bug description:

While inspecting the code for finding the causes of the issues of my build for CYGWIN, I found this piece of code:

#if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__DragonFly__)
# define FD_DIR "/dev/fd"
#else
# define FD_DIR "/proc/self/fd"
#endif

CYGWIN supports /dev/fd and not /dev/self/fd as you can see here:

Image

so a tiny fix is needed for adding __CYGWIN__ to the list of platforms to support the rigth entry with the set of file descriptors open in a process.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Activity

  1. added a commit that references this issue on Apr 14, 2026
  2. added a commit that references this issue on May 13, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions