chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
commitd555d18278e004f0079a669150eb88dc210563c9
treedc33b55f521687b351b1daf365ffea92945cf118
parentb95d5ee7e9a86cd3cd93ae2be366ddc64299f043
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 elogind/src/basic/time-util.c:70, function now(). Aborting.
src/libelogind/sd-event/sd-event.c