diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-03-07 21:49:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-03-07 21:49:12 +0100 |
commit | fe59e38bef69568c385d10761132458606cdd896 (patch) | |
tree | fba5969e43586f09aece79d2bc7b277620ce00ee /src | |
parent | 2e4015f3e73173a4346c03a1ed7962f7d3423ed2 (diff) |
journalctl: imply -n1000 when -e is used
Make sure the pager does not have to buffer an unbounded number of log
messages, by default.
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journalctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
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': |