mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
journalctl: imply -n1000 when -e is used
Make sure the pager does not have to buffer an unbounded number of log messages, by default.
This commit is contained in:
parent
2e4015f3e7
commit
fe59e38bef
@ -168,10 +168,14 @@
|
||||
|
||||
<listitem><para>Immediately jump to
|
||||
the end of the journal inside the
|
||||
implied pager tool. Very useful in
|
||||
combination with the
|
||||
<option>-b</option> option. Note that
|
||||
this is only supported for the
|
||||
implied pager tool. This implies
|
||||
<option>-n1000</option> to guarantee
|
||||
that the pager won't buffer logs of
|
||||
unbounded size. This may be overriden
|
||||
with an explicit <option>-n</option>
|
||||
with some other numeric value on the
|
||||
command line. Note that this option is
|
||||
only supported for the
|
||||
<citerefentry><refentrytitle>less</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
||||
pager.</para></listitem>
|
||||
</varlistentry>
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user