Fix the number of clients spawned by Launcher (#349)
This commit is contained in:
parent
d1700f8775
commit
9f9cab6d72
@ -222,18 +222,16 @@ where
|
|||||||
//spawn clients
|
//spawn clients
|
||||||
for (id, _) in core_ids.iter().enumerate().take(num_cores) {
|
for (id, _) in core_ids.iter().enumerate().take(num_cores) {
|
||||||
if self.cores.iter().any(|&x| x == id) {
|
if self.cores.iter().any(|&x| x == id) {
|
||||||
for id in 0..num_cores {
|
let stdio = if self.stdout_file.is_some() {
|
||||||
let stdio = if self.stdout_file.is_some() {
|
Stdio::inherit()
|
||||||
Stdio::inherit()
|
} else {
|
||||||
} else {
|
Stdio::null()
|
||||||
Stdio::null()
|
};
|
||||||
};
|
|
||||||
|
|
||||||
if self.cores.iter().any(|&x| x == id) {
|
if self.cores.iter().any(|&x| x == id) {
|
||||||
std::env::set_var(_AFL_LAUNCHER_CLIENT, id.to_string());
|
std::env::set_var(_AFL_LAUNCHER_CLIENT, id.to_string());
|
||||||
let child = startable_self()?.stdout(stdio).spawn()?;
|
let child = startable_self()?.stdout(stdio).spawn()?;
|
||||||
handles.push(child);
|
handles.push(child);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user