[Python-checkins] [python/cpython] 8a1c71: bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443...

GitHub noreply at github.com
Thu May 4 07:21:17 EDT 2017


  Branch: refs/heads/3.5
  Home:   https://github.com/python/cpython
  Commit: 8a1c71053139f20348ea487c0c464694ed3c88c5
      https://github.com/python/cpython/commit/8a1c71053139f20348ea487c0c464694ed3c88c5
  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) (#1450)

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