Systemd/src/journal
Peter Portante 992149c07e Periodically call sd_journal_process in journalctl
If `journalctl` take a long time to process messages, and during that
time journal file rotation occurs, a `journalctl` client will keep
those rotated files open until it calls `sd_journal_process()`, which
typically happens as a result of calling `sd_journal_wait()` below in
the "following" case.  By periodically calling `sd_journal_process()`
during the processing loop we shrink the window of time a client
instance has open file descriptors for rotated (deleted) journal
files.

**Warning**

This change does not appear to solve the case of a "paused" output
stream. If somebody is using `journalctl | less` and pauses the
output, then without a background thread periodically listening for
inotify delete events and cleaning up, journal logs will eventually
stop flowing in cases where a journal client with enough open files
causes the "free" disk space threshold to be crossed.
2018-02-08 20:04:18 +01:00
..
audit-type.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
audit-type.h tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
audit_type-to-name.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
cat.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
catalog.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
catalog.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
compress.c journal: avoid undefined behaviour in float division by 0.0 2017-11-28 21:34:50 +01:00
compress.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
fsprg.c Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
fsprg.h Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
generate-audit_type-list.sh separate flags from shebang 2017-12-25 19:48:49 +01:00
journal-authenticate.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-authenticate.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-def.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-file.c journal: losen restrictions on journal file suffix (#8013) 2018-01-27 17:32:36 +09:00
journal-file.h journal: use new helpers with journal_file_close 2017-11-28 21:34:50 +01:00
journal-internal.h journal: use IteratedCache in sd-journal 2018-01-27 13:11:58 -08:00
journal-qrcode.c tree-wide: use __fsetlocking() instead of fxyz_unlocked() 2017-12-14 10:42:25 +01:00
journal-qrcode.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-send.c journal: cast to (void) where we knowingly ignore syscall returns 2018-01-23 19:07:13 +01:00
journal-vacuum.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-vacuum.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-verify.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-verify.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journalctl.c Periodically call sd_journal_process in journalctl 2018-02-08 20:04:18 +01:00
journald-audit.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-audit.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-console.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
journald-console.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-context.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-context.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-gperf.gperf tree-wide: adjust fall through comments so that gcc is happy 2017-11-20 13:06:25 -08:00
journald-kmsg.c journal: avoid code that relies on LOG_KERN == 0 (#8110) 2018-02-08 09:14:32 +01:00
journald-kmsg.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-native.c journald-native: Fix typo in MANDLOCK message 2018-01-22 12:27:09 +01:00
journald-native.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-rate-limit.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-rate-limit.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-server.c coccinelle: O_NDELAY → O_NONBLOCK 2018-01-24 11:09:29 +01:00
journald-server.h tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
journald-stream.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
journald-stream.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-syslog.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
journald-syslog.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-wall.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-wall.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald.c log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
journald.conf journald: make maximum size of stream log lines configurable and bump it to 48K (#6838) 2017-09-22 10:22:24 +02:00
lookup3.c journal/lookup3: silence gcc 7 implicit-fallthrough warning 2017-01-31 14:04:55 -05:00
lookup3.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
meson.build meson: use a convenience lib for journal user sources 2018-01-03 12:09:46 +01:00
mmap-cache.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
mmap-cache.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-journal.c Merge pull request #7042 from vcaputo/iteratedcache 2018-02-01 18:08:50 +01:00
test-audit-type.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-catalog.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-compress-benchmark.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
test-compress.c test: handle gracefully if decompressor tools are not installed (#7455) 2017-11-24 14:08:51 +01:00
test-journal-enum.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-flush.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-init.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-interleaving.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-match.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-send.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
test-journal-stream.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-syslog.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-verify.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-mmap-cache.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00