]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journalctl.c
journalctl: make --rotate synchronous, too
authorLennart Poettering <lennart@poettering.net>
Wed, 11 Nov 2015 12:56:54 +0000 (13:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Nov 2015 13:29:10 +0000 (14:29 +0100)
commitdbd6e31cf91ab86a4a2fffeb50ccef211da3126d
tree9f97ae27e0bf78cbb1b73260e4e88a8f2afc6eee
parent94b6551662e0db8eb09768ed70f77759f322b4c6
journalctl: make --rotate synchronous, too

Of course, ideally we'd just use normal synchronous bus calls, but this
is out of the question as long as we rely on dbus-daemon (which logs to
journald, and thus cannot use to avoid cyclic sync loops). Hence,
instead, reuse the wait logic already implemented for --sync, and use a
signal in one direction, and a mtime watch file for the reply.
man/journalctl.xml
src/journal/journalctl.c
src/journal/journald-server.c