Replace lexical Rust fragments with real modules
This commit is contained in:
parent
f8849cdb5f
commit
247819250b
1 changed files with 3302 additions and 2671 deletions
|
|
@ -1,3 +1,19 @@
|
|||
use super::launch::{BarrierWait, append_parent_identity, exec_target, parse_wrapper_arguments};
|
||||
use super::recovery::{
|
||||
arm_parent_death_and_recheck, authority_from_pidfd, current_process_identity, read_boot_id,
|
||||
read_start_time, require_default_sigchld, require_host_pid_namespace, require_reapable_sigchld,
|
||||
};
|
||||
use super::{
|
||||
AcknowledgedChildAcquisition, AsFd, BarrierRelease, BootstrapChild, CapturedProcess,
|
||||
ChildBroker, ChildStandardIo, ChildStandardIoPolicy, File, HostPidLocator, OFlags, OsString,
|
||||
OwnedFd, PRIVATE_PROCESS_ROLE, ParentEdge, Pid, PidfdFlags, PidfsProcessIdentityV1, PollFd,
|
||||
PollFlags, ProcessExit, ProcessOwnershipCommitAck, ProcessOwnershipContext,
|
||||
ProcessStartTimeTicks, RetainedProcess, SIGCHLD_PROBE_ROLE, Signal, StagedProcessOwnership,
|
||||
Stdio, TargetCommand, Timespec, WRAPPER_ROLE, WaitId, WaitIdOptions, fcntl_getfl, fcntl_setfl,
|
||||
io, launch_barrier, poll, recover_process, require_captured_parent_edge,
|
||||
require_parent_edge_standard_io,
|
||||
};
|
||||
|
||||
impl ChildBroker {
|
||||
/// Spawns the private Host Coordinator bootstrap with exact pipe ownership and pidfd reaping.
|
||||
///
|
||||
|
|
@ -437,7 +453,7 @@ fn fail_running_captured<T>(
|
|||
}
|
||||
|
||||
#[allow(clippy::disallowed_types)]
|
||||
fn private_role_command(role: &str) -> std::process::Command {
|
||||
pub(super) fn private_role_command(role: &str) -> std::process::Command {
|
||||
let mut command = std::process::Command::new("/proc/self/exe");
|
||||
command.arg(PRIVATE_PROCESS_ROLE).arg(role);
|
||||
command
|
||||
|
|
|
|||
Loading…
Reference in a new issue