diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-05-08 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-05-11 09:38:28 +0200 |
| commit | e0a53ed63ab9132b031153d1e69591195e97a59b (patch) | |
| tree | 258f3b659e190a416232be6156c4fa1a5e9d686b /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | b862b438dbffb959ef4e9643148ecd05b8da4d8a (diff) | |
| download | rust-e0a53ed63ab9132b031153d1e69591195e97a59b.tar.gz rust-e0a53ed63ab9132b031153d1e69591195e97a59b.zip | |
Use `fcntl(fd, F_GETFD)` to detect if standard streams are open
In the previous implementation, if the standard streams were open, but the RLIMIT_NOFILE value was below three, the poll would fail with EINVAL: > ERRORS: EINVAL The nfds value exceeds the RLIMIT_NOFILE value. Switch to the existing fcntl based implementation to avoid the issue.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
