From 0732039eaf74f2f2a235535b2f3602d3926b12ec Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 30 Jul 2026 23:39:03 +0300 Subject: fix: preserve windows sessions after ssh logout (#2098) * fix: preserve windows sessions after ssh logout refs #2008 * chore: document windows wmi safety refs #2008 --- src/platform/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/platform/mod.rs') 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 { + 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; -- cgit v1.2.3