diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 19:48:56 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-30 19:49:55 +0300 |
| commit | 26db26e416318e17a6e7f3f196ec72109fb37998 (patch) | |
| tree | 93b18888e9f4bc66d27ef1af5a4e7aad6db77339 /src/server/handoff.rs | |
| parent | c71c6c108245b91f6478d95a3abf9a9a9e2e57a9 (diff) | |
fix: keep remote sessions alive across disconnects
Diffstat (limited to 'src/server/handoff.rs')
| -rw-r--r-- | src/server/handoff.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/handoff.rs b/src/server/handoff.rs index 816537ab..2be36c2a 100644 --- a/src/server/handoff.rs +++ b/src/server/handoff.rs @@ -5,8 +5,6 @@ use std::os::fd::{AsRawFd, RawFd}; #[cfg(unix)] use std::os::unix::net::{UnixListener, UnixStream}; #[cfg(unix)] -use std::os::unix::process::CommandExt; -#[cfg(unix)] use std::path::{Path, PathBuf}; #[cfg(unix)] use std::process::{Child, Command}; @@ -79,10 +77,10 @@ pub(crate) fn spawn_handoff_import( .arg("--handoff-import") .arg(socket_path) .arg(token) - .process_group(0) .stdin(std::process::Stdio::null()) .stdout(std::process::Stdio::null()) .stderr(std::process::Stdio::null()); + crate::platform::detach_server_daemon_command(&mut command); command.spawn().map_err(|err| { io::Error::new( err.kind(), |
