Skip to main content

Module pipe

Module pipe 

Source
Expand description

Async pipe-based process spawning with unified handle interface.

This module provides helpers for spawning non-interactive processes using regular pipes for stdin/stdout/stderr, with proper process group management for reliable cleanup.

Inspired by codex-rs/utils/pty pipe spawning patterns.

Structs§

PipeSpawnOptions
Options for spawning a pipe-based process.

Enums§

PipeStdinMode
Stdin mode for pipe-based processes.

Functions§

spawn_process
Spawn a process using regular pipes (no PTY), returning handles for stdin, output, and exit.
spawn_process_no_stdin
Spawn a process using regular pipes, but close stdin immediately.
spawn_process_with_options
Spawn a process with full options control.