mirror of
https://github.com/octoleo/restic.git
synced 2025-01-31 10:58:26 +00:00
e1ba7ab684
The lock test creates a lock and checks that it is not stale. This also tests whether the corresponding process still exists. However, it is possible that the lock is refreshed concurrently, which updates the lock timestamp. Calling `processExists()` with a value receiver, however, creates an unsynchronized copy of this field. Thus call the method using a pointer receiver.