procpilot 0.9.0

Production-grade subprocess runner with typed errors, retry, and timeout
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Test helper: echo stdin to stdout, byte-for-byte.
//!
//! Not part of procpilot's public API. Used by internal tests.

use std::io::{self, Read, Write};

#[path = "support/orphan.rs"]
mod orphan;

fn main() {
    orphan::exit_when_orphaned();
    let mut buf = Vec::new();
    if io::stdin().read_to_end(&mut buf).is_ok() {
        let _ = io::stdout().write_all(&buf);
    }
}