pub mod handle;
pub mod mock;
pub mod owner_death;
pub mod real;
#[cfg(target_os = "windows")]
mod windows;
pub use handle::{
current_spawner, install_spawner, spawn_process, EnvMode, ExitStatus, OutputCapture,
OwnerDeathPolicy, ProcessCleanupChild, ProcessCleanupReport, ProcessError, ProcessHandle,
ProcessKiller, ProcessSpawner, SpawnSpec, SpawnerGuard, WaitOutcome,
};
pub use mock::{MockHandleController, MockProcess, MockProcessConfig, MockSpawner};
pub use real::default_spawner;
#[cfg(unix)]
pub use real::replace_current_process;
#[cfg(target_os = "windows")]
pub use windows::KillOnCloseJob;
#[cfg(all(test, unix))]
pub(crate) mod test_support {
pub(crate) fn declare_inherited() -> harn_vm::stdlib::process::SessionEnvironmentGuard {
harn_vm::stdlib::process::declare_session_environment_if_absent(
harn_vm::security::SessionEnvironment::inherited(),
)
}
}