From: Kern Sibbald Date: Sat, 3 May 2014 09:31:16 +0000 (+0200) Subject: Flush console queued job messages -- should fix bug #2054 X-Git-Tag: Release-7.0.3~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e43436672434299732e3678a2de078b63dc29d5;p=bacula%2Fbacula Flush console queued job messages -- should fix bug #2054 --- 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);