summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-09-27 11:08:55 +0800
committerMaxime Coste <mawww@kakoune.org>2017-09-27 11:08:55 +0800
commit76f072a786c84195bd04e65afd76ccc01da8b69b (patch)
treebcc2c053cd60f9f5ddadadc9bbd1c08813ca284e /src
parent11c2d6825b30d9fc575bba624d4bcae354b69a55 (diff)
Removing the local client due to SIGHUP is not graceful
That means we will now backup modified buffers if that client was the last. Should improve things for #1590
Diffstat (limited to 'src')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 3f88ad8d..c69c72a3 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -655,7 +655,7 @@ int run_server(StringView session, StringView server_init,
if (sighup_raised)
{
- ClientManager::instance().remove_client(*local_client, true, 0);
+ ClientManager::instance().remove_client(*local_client, false, 0);
if (not client_manager.empty() and fork_server_to_background())
return 0;
sighup_raised = 0;