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

GitHub noreply at github.com
Wed May 3 18:45:57 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: 1c4670ea0cc3d208121af11b9b973e6bb268e570
      https://github.com/python/cpython/commit/1c4670ea0cc3d208121af11b9b973e6bb268e570
  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)

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.




More information about the Python-checkins mailing list