chiark / gitweb /
journalctl: make --follow really work
[elogind.git] / src / journal / journalctl.c
index 58ca8071fc9315e59e9e33c237af816ff6d5400e..34017484be49fb67a980c166da353a7f035b32b5 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) {