diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-17 16:09:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-17 16:09:12 (GMT) |
commit | 3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2 (patch) | |
tree | b90469ff79cd989ce19da53c66af2890b79fa9ce /Misc | |
parent | 197f0447e3bcfa4f529fedab09966d7e3d283979 (diff) | |
download | cpython-3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2.zip cpython-3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2.tar.gz cpython-3092d6b2630e4d2bd200fbc3231c27a7cba4d6b2.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2019-04-16-11-56-12.bpo-32849.aeSg-D.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-04-16-11-56-12.bpo-32849.aeSg-D.rst b/Misc/NEWS.d/next/Core and Builtins/2019-04-16-11-56-12.bpo-32849.aeSg-D.rst new file mode 100644 index 0000000..6a9a85c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2019-04-16-11-56-12.bpo-32849.aeSg-D.rst @@ -0,0 +1,2 @@ +Fix Python Initialization code on FreeBSD to detect properly when stdin file +descriptor (fd 0) is invalid. |