use std::thread;
use std::process::{self, Command};
use std::io::prelude::*;
fn one_loop() {
loop {
let res = Command::new("target/release/stress-msq")
.status()
.unwrap();
if !res.success() {
println!("Bad exit: {:?}", res);
std::io::stdout().flush();
process::exit(1);
}
}
}
fn main() {
println!("Slamming...");
for _i in 0..3 {
thread::spawn(one_loop);
}
one_loop();
}