From a882c35bf2cc8c3f35c3e479735ed5fe8b8a1efb Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 8 Dec 2023 15:20:25 +0100 Subject: [PATCH] - fast-reload, comment explains in_list for printq to print remainder. --- daemon/remote.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.47.2