From 18adbcc1b1abc0b8999d9b7190b148685be19d77 Mon Sep 17 00:00:00 2001 From: Dante Pippi <6619666+dantepippi@users.noreply.github.com> Date: Thu, 17 Jun 2021 21:21:39 -0300 Subject: [PATCH] Detach session on a forced close (handlign SIGTERM and other signals) --- zellij-client/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 83121b67..3e7ed7ab 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -213,7 +213,7 @@ pub fn start_client( let send_client_instructions = send_client_instructions.clone(); move || { send_client_instructions - .send(ClientInstruction::Exit(ExitReason::Normal)) + .send(ClientInstruction::Exit(ExitReason::ForceDetached)) .unwrap() } }),