summaryrefslogtreecommitdiff
path: root/src/platform/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/mod.rs')
-rw-r--r--src/platform/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs
index ba92ca63..613bff1a 100644
--- a/src/platform/mod.rs
+++ b/src/platform/mod.rs
@@ -59,6 +59,11 @@ pub(crate) const fn capabilities() -> PlatformCapabilities {
}
}
+#[cfg(not(windows))]
+pub fn launch_server_daemon_command(command: &mut std::process::Command) -> std::io::Result<u32> {
+ command.spawn().map(|child| child.id())
+}
+
#[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;