granite-rust/library/std/src
Dylan DPC d01648b60e
Rollup merge of - the8472:forget-envlock-on-fork, r=joshtriplett
Do not attempt to unlock envlock in child process after a fork.

This implements the first two points from https://github.com/rust-lang/rust/issues/64718#issuecomment-793030479

This is a breaking change for cases where the environment is accessed in a Command::pre_exec closure. Except for single-threaded programs these uses were not correct anyway since they aren't async-signal safe.

Note that we had a ui test that explicitly tried `env::set_var` in `pre_exec`. As expected it failed with these changes when I tested locally.
2021-03-10 17:55:43 +01:00
..
backtrace Add Frames iterator for Backtrace 2021-01-23 11:56:33 -06:00
collections Rollup merge of - m-ou-se:map-try-insert, r=Amanieu 2021-03-05 10:57:22 +01:00
env std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
error std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f32 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f64 std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
ffi Convert primitives to use intra-doc links 2021-02-25 20:31:53 -05:00
fs std: Fix test got_symlink_permission on Windows 2020-11-16 21:09:26 +03:00
io Generalize Write impl for Vec<u8> to Vec<u8, A> 2021-03-07 16:22:53 +01:00
lazy Upgrade wasm32 image to Ubuntu 20.04 2021-02-06 13:05:56 +01:00
memchr std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
net add #[inline] to all the public IpAddr functions 2021-02-03 10:53:25 -05:00
num rustc_expand: Mark inner #![test] attributes as soft-unstable 2020-11-20 19:35:03 +03:00
os Rollup merge of - CDirkx:cfg-target_os, r=dtolnay 2021-03-03 16:27:47 +09:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path Refactor parse_prefix on Windows 2020-11-07 16:15:48 +01:00
prelude Rollup merge of - m-ou-se:edition-prelude, r=nikomatsakis 2021-03-10 17:55:38 +01:00
process std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
sync Rollup merge of - camsteffen:diag-items, r=oli-obk 2021-03-01 11:25:07 -05:00
sys Rollup merge of - the8472:forget-envlock-on-fork, r=joshtriplett 2021-03-10 17:55:43 +01:00
sys_common Revert "use RWlock when accessing os::env " 2021-03-07 11:32:42 -08:00
thread Rollup merge of - Digital-Chaos:sleep-zero, r=m-ou-se 2021-02-10 12:24:18 +09:00
time Duration::zero() -> Duration::ZERO 2020-10-21 20:44:03 -07:00
alloc.rs Fix safety comment 2021-01-07 09:13:21 +01:00
ascii.rs Convert many files to intra-doc links 2020-09-02 17:37:40 -04:00
backtrace.rs Add Frames iterator for Backtrace 2021-01-23 11:56:33 -06:00
env.rs Document security implications of std::env::temp_dir 2021-01-20 11:24:47 -08:00
error.rs Add tracking issue for map_try_insert. 2021-03-04 16:54:28 +01:00
f32.rs doc: cube root, not cubic root 2021-02-26 19:03:44 +01:00
f64.rs doc: cube root, not cubic root 2021-02-26 19:03:44 +01:00
fs.rs Add doc aliases for "delete" 2021-01-31 11:07:37 +01:00
keyword_docs.rs Convert primitives to use intra-doc links 2021-02-25 20:31:53 -05:00
lazy.rs Clarify that SyncOnceCell::set blocks. 2021-02-28 12:57:38 -08:00
lib.rs Rollup merge of - m-ou-se:edition-prelude, r=nikomatsakis 2021-03-10 17:55:38 +01:00
macros.rs Use #[doc = include_str!()] in std 2021-02-23 15:54:55 +01:00
memchr.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
num.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
panic.rs Fixed minor typo in catch_unwind docs 2021-02-13 16:59:06 +01:00
panicking.rs fix another comment, and make __rust_start_panic code a bit more semantically clear 2020-12-25 23:37:27 +01:00
path.rs Rollup merge of - anall:feature/add_diagnostic_items, r=davidtwco 2021-02-23 02:51:51 +01:00
primitive_docs.rs Convert primitives to use intra-doc links 2021-02-25 20:31:53 -05:00
process.rs ExitStatus: Improve documentation re wait status vs exit status 2021-02-23 00:58:10 +00:00
rt.rs Prevent __rust_begin_short_backtrace frames from being tail-call optimised away 2020-08-07 19:31:25 +01:00
time.rs Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00