Close local tabs and detach or reattach live SSH sessions
Remember the remote daemon and session identity for hostless reattachment. Keep other tabs usable after a discarded snapshot and preserve the last live detach target when a remote shell exits. Reject remote flags for local daemon control commands.
This commit is contained in:
@@ -257,8 +257,14 @@ pub fn run_zygote(socket: &Path) -> Result<()> {
|
||||
}
|
||||
drop(stream);
|
||||
drop(listener);
|
||||
let result = set_child_reaping(false)
|
||||
.and_then(|()| crate::run_gui(server_socket, remote, session));
|
||||
let result = set_child_reaping(false).and_then(|()| {
|
||||
crate::run_gui(
|
||||
server_socket,
|
||||
remote,
|
||||
session,
|
||||
protocol::SshOptions::from_env(),
|
||||
)
|
||||
});
|
||||
let code = if let Err(error) = result {
|
||||
log::error!("GUI startup failed: {error:#}");
|
||||
1
|
||||
|
||||
Reference in New Issue
Block a user