summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-04-12 09:02:59 +1000
committerMaxime Coste <mawww@kakoune.org>2019-04-12 13:23:38 +1000
commitef1fd3acb95a58900d73a194ce8339b5301dfd0b (patch)
treeaeeb86a5c33a4985943cad6dd7686a49a967f74c /src/main.cc
parentf732ea4efb13ced7055a7cc82d30c6cff0a558d3 (diff)
Prevent conversion to client on suspend from disconnecting other clients
clear the client manager in the to be converted process without sending exit messages as the forked server will still be there. Fixes #2847
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 6b533003..d115ef2f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -801,6 +801,7 @@ int run_server(StringView session, StringView server_init,
if (fork_server_to_background())
{
+ ClientManager::instance().clear(false);
String session = server.session();
server.close_session(false);
throw convert_to_client_mode{ std::move(session), std::move(client_name), std::move(buffer_name), std::move(selections) };