Skip to content

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

@carlo-bramini

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions