Commit 3092d6b
authored
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.
1 parent 197f044 commit 3092d6b
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 | |
|---|---|---|---|
| |||
1664 | 1664 | | |
1665 | 1665 | | |
1666 | 1666 | | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
1677 | 1680 | | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1678 | 1684 | | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | 1685 | | |
1683 | | - | |
| 1686 | + | |
1684 | 1687 | | |
| 1688 | + | |
1685 | 1689 | | |
1686 | | - | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
1687 | 1695 | | |
1688 | 1696 | | |
1689 | 1697 | | |
| |||
0 commit comments