Commit 3a725721 authored by Adam Lesinski's avatar Adam Lesinski Committed by Commit Bot

[fuchsia] Clone UTC clock when launching processes

Fuchsia is transitioning from UTC time being tracked in the kernel,
to userspace UTC clock handles.

This preserves the existing behavior that each chromium process
has access to the global UTC clock.

Bug: 1133580, fuchsia:61060
Change-Id: I8ff3d3033a47814dac1a1dd5946ca1fe872ead13
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2440983
Commit-Queue: Wez <wez@chromium.org>
Auto-Submit: Adam Lesinski <adamlesinski@google.com>
Reviewed-by: default avatarWez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812678}
parent 21768375
......@@ -153,7 +153,8 @@ Process LaunchProcess(const std::vector<std::string>& argv,
// |clear_environment|, |environment| or |current_directory| are set then we
// construct a new (possibly empty) environment, otherwise we let fdio_spawn()
// clone the caller's environment into the new process.
uint32_t spawn_flags = FDIO_SPAWN_DEFAULT_LDSVC | options.spawn_flags;
uint32_t spawn_flags = FDIO_SPAWN_DEFAULT_LDSVC | FDIO_SPAWN_CLONE_UTC_CLOCK |
options.spawn_flags;
EnvironmentMap environ_modifications = options.environment;
if (!options.current_directory.empty()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment