We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb1080 commit 652c24cCopy full SHA for 652c24c
libafl/src/events/launcher.rs
@@ -317,6 +317,8 @@ where
317
318
log::info!("spawning on cores: {:?}", self.cores);
319
320
+ let debug_output = std::env::var("LIBAFL_DEBUG_OUTPUT").is_ok();
321
+
322
//spawn clients
323
for (id, _) in core_ids.iter().enumerate().take(num_cores) {
324
if self.cores.ids.iter().any(|&x| x == id.into()) {
@@ -327,7 +329,13 @@ where
327
329
};
328
330
331
std::env::set_var(_AFL_LAUNCHER_CLIENT, id.to_string());
- let child = startable_self()?.stdout(stdio).spawn()?;
332
+ let mut child = startable_self()?;
333
+ let child = (if debug_output {
334
+ &mut child
335
+ } else {
336
+ child.stdout(stdio)
337
+ })
338
+ .spawn()?;
339
handles.push(child);
340
}
341
0 commit comments