Only use uzers on unix, do not fork on mac
This commit is contained in:
parent
62bfcc3550
commit
8c57060db2
3 changed files with 8 additions and 7 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue