process_has_exited_without_reap (src/process.rs)

grok-build · crates/codegen/xai-grok-test-support/src/process.rs · rust · Apache-2.0
infra

! [`TestProcess`] is the Tokio-child owner used by ACP, leader, and headless harnesses. ! [`TestProcessTree`] is the narrower process-tree guard used when a dependency (notably `portable-pty`) owns the concrete child handle.

// Source: https://github.com/xai-org/grok-build | License: Apache-2.0 | Copyright 2023-2026 SpaceXAI
// Provided via justclaw.it.com; keep this notice with the code.
//! [`TestProcess`] is the Tokio-child owner used by ACP, leader, and headless harnesses.
//! [`TestProcessTree`] is the narrower process-tree guard used when a dependency (notably `portable-pty`) owns the concrete child handle.

use std::ffi::{OsStr, OsString};
use std::fmt::Write as _;
use std::io::{self, ErrorKind};
use std::pin::Pin;
use std::process::{ExitStatus, Stdio};
use std::sync::{Arc, Mutex, PoisonError};
use std::task::{Context, Poll};
use std::time::Duration;

use tokio::io::{AsyncRead, AsyncReadExt as _, ReadBuf};
use tokio::task::JoinHandle;

use crate::sandbox::TestSandbox;

const DEFAULT_TAIL_BYTES: usize = 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key