mirror of
https://github.com/tmux/tmux.git
synced 2025-03-24 06:48:48 +00:00
Do not care about the server socket closing if exiting anyway.
This commit is contained in:
parent
2b58c226db
commit
632636dba5
6
client.c
6
client.c
@ -553,8 +553,10 @@ static void
|
|||||||
client_dispatch(struct imsg *imsg, __unused void *arg)
|
client_dispatch(struct imsg *imsg, __unused void *arg)
|
||||||
{
|
{
|
||||||
if (imsg == NULL) {
|
if (imsg == NULL) {
|
||||||
client_exitreason = CLIENT_EXIT_LOST_SERVER;
|
if (!client_exitflag) {
|
||||||
client_exitval = 1;
|
client_exitreason = CLIENT_EXIT_LOST_SERVER;
|
||||||
|
client_exitval = 1;
|
||||||
|
}
|
||||||
proc_exit(client_proc);
|
proc_exit(client_proc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
2
file.c
2
file.c
@ -485,7 +485,7 @@ file_write_left(struct client_files *files)
|
|||||||
size_t left;
|
size_t left;
|
||||||
int waiting = 0;
|
int waiting = 0;
|
||||||
|
|
||||||
RB_FOREACH (cf, client_files, files) {
|
RB_FOREACH(cf, client_files, files) {
|
||||||
if (cf->event == NULL)
|
if (cf->event == NULL)
|
||||||
continue;
|
continue;
|
||||||
left = EVBUFFER_LENGTH(cf->event->output);
|
left = EVBUFFER_LENGTH(cf->event->output);
|
||||||
|
Loading…
Reference in New Issue
Block a user