Skip to content

Commit

Permalink
Flush console queued job messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent ccea6d8 commit 33a40c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dird/ua_output.c
Expand Up @@ -799,6 +799,13 @@ void do_messages(UAContext *ua, const char *cmd)
int mlen;
bool do_truncate = false;

/*
* Flush any queued messages.
*/
if (ua->jcr) {
dequeue_messages(ua->jcr);
}

Pw(con_lock);
pthread_cleanup_push(con_lock_release, (void *)NULL);
rewind(con_fd);
Expand Down

0 comments on commit 33a40c1

Please sign in to comment.