mirror of
https://github.com/python/cpython.git
synced 2026-08-12 08:16:41 +08:00
is_valid_fd() now uses fstat() instead of dup() on macOS to return 0 on a pipe when the other side of the pipe is closed. fstat() fails with EBADF in that case, whereas dup() succeed.
Miscellaneous source files for the main Python shared library