From 7b0eeb26b155fd764787576922770cc30cd42608 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 4 Nov 2013 20:10:14 +0000 Subject: [PATCH] Run new clients in a new process session When running a terminal emulator containing a kakoune client, it used to still have the server tty as controlling termnal, and so received SIGINT's from the user in it. Termnal emulators then responded by exiting. This is no longer the case. --- src/rc/client.kak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rc/client.kak b/src/rc/client.kak index 067ccb3c..4362e65b 100644 --- a/src/rc/client.kak +++ b/src/rc/client.kak @@ -8,6 +8,5 @@ decl str termcmd %sh{ def new -shell-params %{ nop %sh{ if (( $# != 0 )); then kakoune_params="-e '$@'"; fi - ${kak_opt_termcmd} "kak -c ${kak_session} ${kakoune_params}" < /dev/null >& /dev/null & - disown + setsid ${kak_opt_termcmd} "kak -c ${kak_session} ${kakoune_params}" < /dev/null >& /dev/null & }}