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
This commit is contained in:
Maxime Coste 2017-09-27 11:08:55 +08:00
parent 11c2d6825b
commit 76f072a786

View File

@ -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;