diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-12 11:17:01 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-12 11:17:01 +0100 |
commit | 33d52ab92f2f0bfd706e6f343d172618d1e03f3d (patch) | |
tree | 15f21659f2e23491ef6dd7d390fde2945d9302d4 /src/basic/ordered-set.h | |
parent | b97e7fabaeaf12c88d6a10b2bfead54a77812105 (diff) |
journald: rework --sync/--rotate logic to use CLOCK_MONOTONIC timestamp files
Previously, we'd rely on the mtime timestamps of the touch files to see
if our sync/rotation requests were already suppressed. This means we
rely on CLOCK_REALTIME timestamps. With this patch we instead store the
CLOCK_MONOTONIC timestamp *in* the touch files, and avoid relying on
mtime.
This should make things more reliable when the clock or underlying mtime
granularity is not very good.
This also adds warning messages if writing any of the flag files fails.
Diffstat (limited to 'src/basic/ordered-set.h')
0 files changed, 0 insertions, 0 deletions