]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/timer.c
tree-wide: fall back to now(CLOCK_MONOTONIC) if CLOCK_BOOTTIME unsupported (#3037)
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 18 Apr 2016 01:45:42 +0000 (03:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 18 Apr 2016 01:45:42 +0000 (21:45 -0400)
commit6f7202cfd512d18f561af6708fe0823c9545f674
treea64a51fad048ea0cb2663b0c27b531575751f3b0
parent746af6e0b5aaed999be912e48505d3edc2cf874a
tree-wide: fall back to now(CLOCK_MONOTONIC) if CLOCK_BOOTTIME unsupported (#3037)

It was added in 2.6.39, and causes an assertion to fail when running in mock
hosted on 2.6.32-based RHEL-6:

Assertion 'clock_gettime(map_clock_id(clock_id), &ts) == 0' failed at systemd/src/basic/time-util.c:70, function now(). Aborting.
src/core/dbus-timer.c
src/core/timer.c
src/libsystemd/sd-event/sd-event.c