journalctl: make sure 'journalctl -f -t unmatched' blocks
authorStef Walter <stefw@redhat.com>
Fri, 14 Aug 2015 14:38:41 +0000 (16:38 +0200)
committerStef Walter <stefw@redhat.com>
Mon, 17 Aug 2015 07:51:51 +0000 (09:51 +0200)
commitc51e1a96359b3f4d374345593b11273df2132b93
tree9b61b312344a268a8104c4bb6ebfbb6d1be01e81
parent0d4605ec3c9c1392bb5f0abc590b1d855df5eebb
journalctl: make sure 'journalctl -f -t unmatched' blocks

Previously the following command:

$ journalctl -f -t unmatchedtag12345

... would block when called with criteria that did not match any
journal lines. Once log lines appeared that matched the criteria
they were displayed.

Commit 02ab86c732576a71179ce12e97d44c289833236d broke this
behavior and the journal was not followed, but the command
exits with '-- No entries --' displayed.

This commit fixes the issue.

More information downstream:

https://bugzilla.redhat.com/show_bug.cgi?id=1253649
src/journal/journalctl.c