Repository navigation
Commit 8a1c710
authored
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.
(cherry picked from commit 1c4670e)
1 parent 943861f commit 8a1c710
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
968 | 968 | | |
969 | 969 | | |
970 | 970 | | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
971 | 979 | | |
972 | 980 | | |
973 | 981 | | |
| |||
977 | 985 | | |
978 | 986 | | |
979 | 987 | | |
| 988 | + | |
980 | 989 | | |
981 | 990 | | |
982 | 991 | | |
| |||
0 commit comments