libfaketime: fix problem with TIMESTAMP_FILE synchronization
Clearing and writing to TIMESTAMP_FILE is not atomic and libfaketime can read empty file which represents default behavior and returning realtime. Create and move new file is atomic and prevent this issue.
Showing
Please register or sign in to comment