mirror of https://github.com/python/cpython
Browse Source
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.pull/1452/head
committed by
GitHub
1 changed files with 9 additions and 0 deletions
Loading…
Reference in new issue