From 6e43436672434299732e3678a2de078b63dc29d5 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 3 May 2014 11:31:16 +0200 Subject: [PATCH] Flush console queued job messages -- should fix bug #2054 --- bacula/src/dird/ua_output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/dird/ua_output.c b/bacula/src/dird/ua_output.c index 00a6c3be89..d5106fd1b2 100644 --- a/bacula/src/dird/ua_output.c +++ b/bacula/src/dird/ua_output.c @@ -751,6 +751,9 @@ void do_messages(UAContext *ua, const char *cmd) int mlen; bool do_truncate = false; + if (ua->jcr) { + dequeue_messages(ua->jcr); + } Pw(con_lock); pthread_cleanup_push(con_lock_release, (void *)NULL); rewind(con_fd); -- 2.39.5