diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-07-30 23:39:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-30 23:39:03 +0300 |
| commit | 0732039eaf74f2f2a235535b2f3602d3926b12ec (patch) | |
| tree | 9ba3fdc2a0de63c40c320f857773bcead1a92b4a /src/platform/mod.rs | |
| parent | a07871a55ee77eea15e4e7d1b6cccce720c6f066 (diff) | |
fix: preserve windows sessions after ssh logout (#2098)
* fix: preserve windows sessions after ssh logout
refs #2008
* chore: document windows wmi safety
refs #2008
Diffstat (limited to 'src/platform/mod.rs')
| -rw-r--r-- | src/platform/mod.rs | 5 |
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; |
