]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #76758 - adamlesinski:clone_clock, r=tmandry
authorTyler Mandry <tmandry@gmail.com>
Wed, 16 Sep 2020 19:24:19 +0000 (12:24 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 19:24:19 +0000 (12:24 -0700)
commitab207743aff648455687708a4cd66cf4c7132983
treefcf2682f5578e847b90d583686ef64107b93fe64
parenta6c4d30c7b42957873d2ff19b5405edc071e8bb5
parentfafb2e9de717c40b95e52889bb641b32c1dc6a1e
Rollup merge of #76758 - adamlesinski:clone_clock, r=tmandry

[fuchsia] Propagate the userspace UTC clock

On Fuchsia, spawning a subprocess does not automatically
clone all of the parent process' capabilities. UTC time on
Fuchsia is managed by a top-level userspace clock capability
that is cloned and passed to subprocesses.

This change ensures that any Rust subprocess gets access to the
UTC clock, if the parent had access to it. This is critical for
tests, which on Fuchsia, use panic=abort and spawn subprocesses
per test.