chiark / gitweb /
journalctl: make --follow really work
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 14 Oct 2012 15:29:38 +0000 (15:29 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 14 Oct 2012 15:29:38 +0000 (15:29 +0000)
src/journal/journalctl.c

index 58ca807..3401748 100644 (file)
@@ -917,7 +917,7 @@ int main(int argc, char *argv[]) {
         }
 
         for (;;) {
-                while (arg_lines == 0 || n_shown < arg_lines) {
+                while (arg_lines == 0 || arg_follow || n_shown < arg_lines) {
                         int flags;
 
                         if (need_seek) {