mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 00:26:16 +03:00
sycall also watches the timestamp_file
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user