summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-17 11:19:14 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-17 11:19:14 +0200
commit22175a39e8df964b26def7988b841b348de9c97a (patch)
tree67061dff39e700be07c3e854663bedf8c55304e8 /src
parente503467fa021a46b244cf4c012a4485167cca4d0 (diff)
parentc51e1a96359b3f4d374345593b11273df2132b93 (diff)
Merge pull request #958 from stefwalter/fix-journalctl-f-regression
Regression: 'journalctl -f -t unmatched' doesn't block properly
Diffstat (limited to 'src')
-rw-r--r--src/journal/journalctl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index fe83edd2b3..ce2dd9da26 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -2066,8 +2066,12 @@ int main(int argc, char *argv[]) {
goto finish;
}
if (r == 0) {
- printf("-- No entries --\n");
- goto finish;
+ if (arg_follow)
+ need_seek = true;
+ else {
+ printf("-- No entries --\n");
+ goto finish;
+ }
}
if (!arg_follow)