//! A build script descendant that stays alive until the native call ends. fn main() { std::process::Command::new("sh") .args(["-c", "echo $$ > child.pid; exec sleep 1000"]) .status() .unwrap(); }