diff --git a/src/event_reader.rs b/src/event_reader.rs index b7e992f..16f4e98 100644 --- a/src/event_reader.rs +++ b/src/event_reader.rs @@ -446,25 +446,7 @@ impl EventReader { } } }, - Err(_) => { - for command in command_list { - match fork() { - Ok(Fork::Child) => { - Command::new("sh") - .arg("-c") - .arg(command) - .stdin(Stdio::null()) - .stdout(Stdio::null()) - .stderr(Stdio::null()) - .spawn() - .expect("Failed to run command."); - std::process::exit(0); - }, - Ok(Fork::Parent(_)) => (), - Err(_) => std::process::exit(1), - } - } - } + _ => {} } }, Ok(_) => {