Merge pull request #451 from RCoeurjoly/master

sycall also watches the timestamp_file
This commit is contained in:
Wolfgang Hommel
2024-01-02 15:14:05 +01:00
committed by GitHub

View File

@@ -4103,7 +4103,7 @@ long syscall(long number, ...) {
}
#endif
// static int (*real_clock_gettime) (clockid_t clk_id, struct timespec *tp);
if (number == __NR_clock_gettime && getenv("FAKETIME")) {
if (number == __NR_clock_gettime && (getenv("FAKETIME") || getenv("FAKETIME_TIMESTAMP_FILE"))) {
clockid_t clk_id;
struct timespec *tp;
clk_id = va_arg(ap, clockid_t);