From: W.C.A. Wijngaards Date: Fri, 8 Dec 2023 14:20:25 +0000 (+0100) Subject: - fast-reload, comment explains in_list for printq to print remainder. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a882c35bf2cc8c3f35c3e479735ed5fe8b8a1efb;p=thirdparty%2Funbound.git - fast-reload, comment explains in_list for printq to print remainder. --- diff --git a/daemon/remote.c b/daemon/remote.c index e01bdb3c4..63ece5c59 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -4032,6 +4032,12 @@ fast_reload_thread_desetup(struct fast_reload_thread* fast_reload_thread) if(fr_printq_empty(fast_reload_thread->printq)) { fr_printq_delete(fast_reload_thread->printq); } else { + /* Keep the printq around to printout the remaining + * text to the remote client. Until it is done, it + * sits on a list, that is in the daemon struct. + * The event can then spool the remaining text to the + * remote client and eventually delete itself from the + * callback. */ fr_printq_list_insert(fast_reload_thread->printq, fast_reload_thread->worker->daemon); fast_reload_thread->printq = NULL;