about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-10 11:50:39 +0000
committerbors <bors@rust-lang.org>2022-06-10 11:50:39 +0000
commitec55c61305eaf385fc1b93ac9a78284b4d887fe5 (patch)
tree5b6abe8dc4a2278044d14457fb5f298b25e0527b /compiler/rustc_errors/src/json.rs
parentf19ccc2e8dab09e542d4c5a3ec14c7d5bce8d50e (diff)
parent2e62fdab76bd92d0d381589fc85602efad93c846 (diff)
downloadrust-ec55c61305eaf385fc1b93ac9a78284b4d887fe5.tar.gz
rust-ec55c61305eaf385fc1b93ac9a78284b4d887fe5.zip
Auto merge of #96837 - tmiasko:stdio-fcntl, r=joshtriplett
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.

Fixes #96621.
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
0 files changed, 0 insertions, 0 deletions