From 76f072a786c84195bd04e65afd76ccc01da8b69b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 27 Sep 2017 11:08:55 +0800 Subject: [PATCH] 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 --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;