Only use uzers on unix, do not fork on mac

This commit is contained in:
Jeremy Soller 2026-04-17 12:48:39 -06:00
parent 62bfcc3550
commit 8c57060db2
3 changed files with 8 additions and 7 deletions

View file

@ -191,7 +191,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
}
if daemonize {
#[cfg(all(unix, not(target_os = "redox")))]
#[cfg(all(unix, not(any(target_os = "macos", target_os = "redox"))))]
match fork::daemon(true, true) {
Ok(fork::Fork::Child) => (),
Ok(fork::Fork::Parent(_child_pid)) => process::exit(0),