diff options
Diffstat (limited to 'src/platform/mod.rs')
| -rw-r--r-- | src/platform/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs index 70047fef..eb84e0b1 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -153,10 +153,18 @@ pub fn launch_server_daemon_command(command: &mut std::process::Command) -> std: command.spawn().map(|child| child.id()) } +#[cfg(not(target_os = "macos"))] +pub(crate) fn prepare_server_process(_handoff_import: bool) -> std::io::Result<bool> { + Ok(false) +} + #[cfg(any(target_os = "linux", target_os = "macos"))] pub fn detach_server_daemon_command(command: &mut std::process::Command) { use std::os::unix::process::CommandExt; + #[cfg(target_os = "macos")] + macos::configure_server_daemon_context(command); + unsafe { command.pre_exec(|| { if libc::setsid() < 0 { |
