rust/library/std
Matthias Krüger faf13dd112
Rollup merge of #116038 - the8472:panic-on-sched_getaffinity-bug, r=cuviper
Fall back to _SC_NPROCESSORS_ONLN if sched_getaffinity returns an empty mask

Followup to #115946
A gentler fix for #115868, one that doesn't panic, [suggested on zulip](https://rust-lang.zulipchat.com/#narrow/stream/259402-t-libs.2Fmeetings/topic/Meeting.202023-09-19/near/391942927)

In that situation - on the buggy kernel versions - a zero-mask means no affinities have been set so `_SC_NPROCESSORS_ONLN` provides the right value.
2023-09-22 12:15:27 +02:00
..
benches mv std libs to library/ 2020-07-27 19:51:13 -05:00
src Rollup merge of #116038 - the8472:panic-on-sched_getaffinity-bug, r=cuviper 2023-09-22 12:15:27 +02:00
tests Add data race test to std::env::{get, set} 2023-08-20 21:50:45 +02:00
build.rs added support for GNU/Hurd 2023-09-21 17:31:25 +02:00
Cargo.toml Rollup merge of #115839 - Dirreke:bump-libc, r=dtolnay 2023-09-19 11:35:51 +02:00