Commit b87a807
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.
(cherry picked from commit 3092d6b)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent a6fce19 commit b87a807
File tree
2 files changed
+25
-15
lines changed- Misc/NEWS.d/next/Core and Builtins
- Python
2 files changed
+25
-15
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1672 | 1672 | | |
1673 | 1673 | | |
1674 | 1674 | | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1685 | 1688 | | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
1686 | 1692 | | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | 1693 | | |
1691 | | - | |
| 1694 | + | |
1692 | 1695 | | |
| 1696 | + | |
1693 | 1697 | | |
1694 | | - | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
1695 | 1703 | | |
1696 | 1704 | | |
1697 | 1705 | | |
| |||
0 commit comments