rightkit-child-process 0.5.4

Ownership-safe child lifecycle, restart, and health primitives for Right Suite apps.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{
    io,
    process::{Command, ExitStatus},
};

/// Run a foreground terminal pass-through & wait without an execution deadline.
///
/// Preserves every caller setting on `command`, including arguments, environment, working
/// directory & stdio. Unconfigured stdio inherits the parent's streams, as for `Command::status`.
/// No process group, session, console-window flag, containment job or capture is installed.
/// In particular, Unix children stay in the caller's foreground process group unless the
/// caller itself configured otherwise. This is an intentionally uncontained terminal operation,
/// distinct from [`crate::OwnedCommand`]; it does not change owned-child defaults.
/// Returns the original standard-library launch/wait result, without runner provenance.
pub fn status_inherited_terminal(command: &mut Command) -> io::Result<ExitStatus> {
    command.status()
}