summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Hommel <wolf@code-wizards.com>2022-02-28 15:42:55 +0100
committerWolfgang Hommel <wolf@code-wizards.com>2022-02-28 15:42:55 +0100
commit40edcc7ca087a8118fe5a2d27152617fa233e0e2 (patch)
treeaba0e0e0df2d1d710c95fc9beacdb75f4761f2c2
parentda348ae2dde6ded697b1f203d9e9b8c5d745275a (diff)
downloadlibfaketime-40edcc7ca087a8118fe5a2d27152617fa233e0e2.tar.gz
Documentation updated regarding FAKETIME_FORCE_MONOTONIC_FIX
-rw-r--r--README22
1 files changed, 22 insertions, 0 deletions
diff --git a/README b/README
index acf72d8..a2b6db2 100644
--- a/README
+++ b/README
@@ -103,6 +103,28 @@ documentation whether it can be achieved by using libfaketime directly.
FORCE_MONOTONIC_FIX alone does not solve the hang on the MONOTONIC_CLOCK
test.
+ If FORCE_MONOTONIC_FIX was not set as a compile-time flag, you can also
+ set an environment variable FAKETIME_FORCE_MONOTONIC_FIX=1 if you want
+ to enable the fix at run-time, or to 0 if you explicitly want to disable
+ it. The fix is automatically enabled if libfaketime was compiled on a
+ system with glibc as the underlying libc implementation, and a glibc
+ version is detected at run-time that is assumed to need this workaround.
+ Please use Github issues at https://github.com/wolfcw/libfaketime/issues
+ to report any observed hangs during CLOCK_MONOTONIC tests and report
+ your CPU architecture, libc implementation (e.g., glibc 2.30) and any
+ other details that might help (e.g., Linux distribution, use within, e.g.,
+ Docker containers etc.).
+
+ Please try to avoid compiling with FORCE_MONOTONIC_FIX on platforms that
+ do not need it. While it won't make a difference in most cases, depending
+ on the specific FAKETIME settings in use, it would cause certain
+ intercepted functions such as pthread_cond_timedwait() return with a
+ time-out too early or too late, which could break some applications.
+ Try compiling without FORCE_MONOTONIC_FIX first and check whether the
+ tests appear to hang. If they do, you can either set the
+ FAKETIME_FORCE_MONOTONIC_FIX environment variable to 1, or re-compile
+ with FORCE_MONOTONIC_FIX set.
+
3. Installation
---------------