https://github.com/python/cpython/commit/b6854c50988761b305972e6e83b642c46cf00448
commit: b6854c50988761b305972e6e83b642c46cf00448
branch: main
author: Carlo Bramini <[email protected]>
committer: vstinner <[email protected]>
date: 2026-05-13T20:05:27Z
summary:

gh-148575: Use /dev/fd/ to read the set of file descriptors on Cygwin (#148576)

files:
M Modules/_posixsubprocess.c

diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
index b7f39ea3d499e4..9867f077faef7a 100644
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -63,7 +63,7 @@
 # endif
 #endif
 
-#if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__)) || 
defined(__DragonFly__)
+#if defined(__CYGWIN__) || defined(__FreeBSD__) || (defined(__APPLE__) && 
defined(__MACH__)) || defined(__DragonFly__)
 # define FD_DIR "/dev/fd"
 #else
 # define FD_DIR "/proc/self/fd"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to