]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: clock: test all clock_gettime() return values
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Sep 2024 07:12:07 +0000 (09:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Sep 2024 07:08:10 +0000 (09:08 +0200)
commit42e699903e7eca155cb3f4c407a8a1ac88e08cf1
tree127d9b530c7798a7af4365cf3730e98f1a9ef337
parentbb2a2bc5f2f6d864cd8770cbd2533d3df1878ad1
MINOR: clock: test all clock_gettime() return values

Till now we were only using clock_gettime() for profiling, so if it
would fail it was no big deal. We intend to use it as the main clock
as well now, so we need to more reliably detect its absence or failure
and gracefully fall back to other options. Without the test we would
return anything present in the stack, which is neither clean nor easy
to detect.
src/clock.c