diff options
| author | bors <bors@rust-lang.org> | 2022-06-10 11:50:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-10 11:50:39 +0000 |
| commit | ec55c61305eaf385fc1b93ac9a78284b4d887fe5 (patch) | |
| tree | 5b6abe8dc4a2278044d14457fb5f298b25e0527b /compiler/rustc_errors/src/json.rs | |
| parent | f19ccc2e8dab09e542d4c5a3ec14c7d5bce8d50e (diff) | |
| parent | 2e62fdab76bd92d0d381589fc85602efad93c846 (diff) | |
| download | rust-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
