diff --git a/src/main.rs b/src/main.rs index f3ca2d3..53e3bc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,7 +80,7 @@ pub fn icon_cache_get(name: &'static str, size: u16) -> icon::Icon { } fn main() -> Result<(), Box> { - #[cfg(unix)] + #[cfg(all(unix, not(target_os = "redox")))] match fork::daemon(true, true) { Ok(fork::Fork::Child) => (), Ok(fork::Fork::Parent(_child_pid)) => process::exit(0),