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:
parent
11c2d6825b
commit
76f072a786
|
@ -655,7 +655,7 @@ int run_server(StringView session, StringView server_init,
|
||||||
|
|
||||||
if (sighup_raised)
|
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())
|
if (not client_manager.empty() and fork_server_to_background())
|
||||||
return 0;
|
return 0;
|
||||||
sighup_raised = 0;
|
sighup_raised = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user