1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-22 12:58:48 +00:00

Do not care about the server socket closing if exiting anyway.

This commit is contained in:
nicm 2021-02-12 06:52:48 +00:00
parent 2b58c226db
commit 632636dba5
2 changed files with 5 additions and 3 deletions

View File

@ -553,8 +553,10 @@ static void
client_dispatch(struct imsg *imsg, __unused void *arg)
{
if (imsg == NULL) {
client_exitreason = CLIENT_EXIT_LOST_SERVER;
client_exitval = 1;
if (!client_exitflag) {
client_exitreason = CLIENT_EXIT_LOST_SERVER;
client_exitval = 1;
}
proc_exit(client_proc);
return;
}

2
file.c
View File

@ -485,7 +485,7 @@ file_write_left(struct client_files *files)
size_t left;
int waiting = 0;
RB_FOREACH (cf, client_files, files) {
RB_FOREACH(cf, client_files, files) {
if (cf->event == NULL)
continue;
left = EVBUFFER_LENGTH(cf->event->output);