diff --git a/libafl/src/bolts/launcher.rs b/libafl/src/bolts/launcher.rs index d3b08bfdd5..d953fa33a7 100644 --- a/libafl/src/bolts/launcher.rs +++ b/libafl/src/bolts/launcher.rs @@ -222,18 +222,16 @@ where //spawn clients for (id, _) in core_ids.iter().enumerate().take(num_cores) { if self.cores.iter().any(|&x| x == id) { - for id in 0..num_cores { - let stdio = if self.stdout_file.is_some() { - Stdio::inherit() - } else { - Stdio::null() - }; + let stdio = if self.stdout_file.is_some() { + Stdio::inherit() + } else { + Stdio::null() + }; - if self.cores.iter().any(|&x| x == id) { - std::env::set_var(_AFL_LAUNCHER_CLIENT, id.to_string()); - let child = startable_self()?.stdout(stdio).spawn()?; - handles.push(child); - } + if self.cores.iter().any(|&x| x == id) { + std::env::set_var(_AFL_LAUNCHER_CLIENT, id.to_string()); + let child = startable_self()?.stdout(stdio).spawn()?; + handles.push(child); } } }