[systemd-commits] src/journal

Zbigniew Jędrzejewski-Szmek zbyszek at kemper.freedesktop.org
Sun Oct 14 08:47:37 PDT 2012


 src/journal/journalctl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c3eba2ab4e70fc7aed902b1d5b1fcb978ef98dfa
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date:   Sun Oct 14 15:29:38 2012 +0000

    journalctl: make --follow really work

diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 58ca807..3401748 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -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) {



More information about the systemd-commits mailing list