sycall also watches the timestamp_file

This commit is contained in:
Roland Coeurjoly
2024-01-02 15:09:12 +01:00
parent 0af80dd593
commit 6a0f35dcbd

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);