From 26db26e416318e17a6e7f3f196ec72109fb37998 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Tue, 30 Jun 2026 19:48:56 +0300 Subject: fix: keep remote sessions alive across disconnects --- src/server/handoff.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/server/handoff.rs') 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(), -- cgit v1.2.3