There's a potential race, but it's detected and just results in the other process failing to take the side lock, so possibly retrying one second later on. The race window is quite narrow so the extra delay is minor. Left the side lock files mode 666 because an interruption can leave a side lock file created by another user for a shared repository. When this happens, the non-owning user can't delete it (+t) but can still lock it, and so the code falls back to acting as it did before this commit. |
||
|---|---|---|
| .. | ||
| LockStatus.hs | ||
| PidLock.hs | ||
| Posix.hs | ||
| Windows.hs | ||