Skip to main content

base_scheduler/
process_wait_result.rs

1// Released under the MIT License.
2// Copyright, 2026, by Samuel Williams.
3
4use std::process::ExitStatus;
5
6/// One child's status. Only a termination status means the child has exited.
7#[derive(Clone, Copy, Debug, Eq, PartialEq)]
8pub struct ProcessWaitResult {
9    /// The actual positive process ID, including when waiting for any child or a group.
10    pub pid: u32,
11    /// Native status, compatible with standard-library exit status extensions. On Unix, use `ExitStatusExt` to distinguish signal termination, stops, and continuation.
12    pub status: ExitStatus,
13}