1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00

Merge pull request #958 from stefwalter/fix-journalctl-f-regression

Regression: 'journalctl -f -t unmatched' doesn't block properly
This commit is contained in:
Lennart Poettering 2015-08-17 11:19:14 +02:00
commit 22175a39e8

View File

@ -2066,9 +2066,13 @@ int main(int argc, char *argv[]) {
goto finish; goto finish;
} }
if (r == 0) { if (r == 0) {
if (arg_follow)
need_seek = true;
else {
printf("-- No entries --\n"); printf("-- No entries --\n");
goto finish; goto finish;
} }
}
if (!arg_follow) if (!arg_follow)
pager_open_if_enabled(); pager_open_if_enabled();