This commit is contained in:
Dominik Maier 2021-03-03 16:19:51 +01:00
parent 909d0f8574
commit 69c3581f1a
2 changed files with 7 additions and 6 deletions

View File

@ -65,8 +65,8 @@ use serde::{Deserialize, Serialize};
#[cfg(feature = "std")]
use std::{
env, fs,
net::SocketAddr,
io::{Read, Write},
net::SocketAddr,
net::{TcpListener, TcpStream},
thread,
};

View File

@ -514,17 +514,18 @@ where
// We start ourself as child process to actually fuzz
if std::env::var(_ENV_FUZZER_SENDER).is_err() {
#[cfg(target_os = "android")]
{
let path = std::env::current_dir()?;
mgr = LlmpEventManager::<I, S, SH, ST>::new_on_domain_socket(
stats,
&format!("{}/.llmp_socket", path.display()).to_string(),
)?;
stats,
&format!("{}/.llmp_socket", path.display()).to_string(),
)?;
};
#[cfg(not(target_os = "android"))]
{mgr = LlmpEventManager::<I, S, SH, ST>::new_on_port(stats, broker_port)?};
{
mgr = LlmpEventManager::<I, S, SH, ST>::new_on_port(stats, broker_port)?
};
if mgr.is_broker() {
// Yep, broker. Just loop here.