From fe59e38bef69568c385d10761132458606cdd896 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 Mar 2013 21:49:12 +0100 Subject: journalctl: imply -n1000 when -e is used Make sure the pager does not have to buffer an unbounded number of log messages, by default. --- src/journal/journalctl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 5fb2db3ba5..3682329e46 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -221,6 +221,10 @@ static int parse_argv(int argc, char *argv[]) { case 'e': arg_pager_end = true; + + if (arg_lines < 0) + arg_lines = 1000; + break; case 'f': -- cgit v1.2.3-54-g00ecf