Do not fork on Redox

This commit is contained in:
Jeremy Soller 2023-12-08 08:50:23 -07:00
parent cd0a473b77
commit ec52d17303
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -80,7 +80,7 @@ pub fn icon_cache_get(name: &'static str, size: u16) -> icon::Icon {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
#[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),