SIGN IN SIGN UP

bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443)

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.
V
Victor Stinner committed
1c4670ea0cc3d208121af11b9b973e6bb268e570
Parent: 5f161fd
Committed by GitHub <noreply@github.com> on 5/3/2017, 10:45:56 PM