[Python-checkins] [python/cpython] 31906b: bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443...
GitHub
noreply at github.com
Thu May 4 07:21:12 EDT 2017
Branch: refs/heads/3.6
Home: https://github.com/python/cpython
Commit: 31906b42fd71c6baaf80429005c720b40dfe8fae
https://github.com/python/cpython/commit/31906b42fd71c6baaf80429005c720b40dfe8fae
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-05-04 (Thu, 04 May 2017)
Changed paths:
M Python/pylifecycle.c
Log Message:
-----------
bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) (#1449)
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.
(cherry picked from commit 1c4670ea0cc3d208121af11b9b973e6bb268e570)
More information about the Python-checkins
mailing list