about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/debug.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2022-05-08 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2022-05-11 09:38:28 +0200
commite0a53ed63ab9132b031153d1e69591195e97a59b (patch)
tree258f3b659e190a416232be6156c4fa1a5e9d686b /compiler/rustc_mir_transform/src/coverage/debug.rs
parentb862b438dbffb959ef4e9643148ecd05b8da4d8a (diff)
downloadrust-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