This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::os::unix::process::CommandExt; | |
| use std::process::Command; | |
| // Compile with rustc test_spawn.rs | |
| fn main() { | |
| println!("About to spawn /bin/sh with pre_exec"); | |
| let mut cmd = Command::new("/bin/sh"); | |
| cmd.arg("-c").arg("echo hello"); |
OlderNewer