-/* $OpenBSD: client.c,v 1.153 2021/02/11 09:39:29 nicm Exp $ */
+/* $OpenBSD: client.c,v 1.154 2021/02/12 06:52:48 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
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;
}
-/* $OpenBSD: file.c,v 1.9 2021/02/11 09:39:29 nicm Exp $ */
+/* $OpenBSD: file.c,v 1.10 2021/02/12 06:52:48 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
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);