Skip to content

Commit

Permalink
sycall also watches the timestamp_file
Browse files Browse the repository at this point in the history
  • Loading branch information
RCoeurjoly committed Jan 2, 2024
1 parent 0af80dd commit 6a0f35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfaketime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6a0f35d

Please sign in to comment.