bpo-32849: Fix is_valid_fd() on FreeBSD (GH-12852)
Fix Python Initialization code on FreeBSD to detect properly when stdin file descriptor (fd 0) is invalid. On FreeBSD, fstat() must be used to check if stdin (fd 0) is valid. dup(0) doesn't fail if stdin is invalid in some cases.
V
Victor Stinner committed
3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2
Parent: 197f044
Committed by GitHub <noreply@github.com>
on 4/17/2019, 4:09:12 PM