Do not fork on Redox
This commit is contained in:
parent
cd0a473b77
commit
ec52d17303
1 changed files with 1 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue