git-annex/Assistant
Joey Hess d7a28f21c9
assistant: Avoid startup hang on active *.lock file
Avoid hanging at startup when a process has a *.lock file open in the .git
directory.

The goal is to repair stale locks, not wait for all active locks to be
closed. This was causing problems for a non-git process that has its own
lock file in a subdir of .git/.

If .git/index_lock is a non-stale lock, this does let the assistant start
up regardless. Commits by the assistant will then fail, until the process
locking the index finishes. This is not a problem, because the same
behavior could already happen if the assistant is started and then another
process locks the index.

Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
2025-05-22 12:56:58 -04:00
..
Alert Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Install optimise literalOsPath 2025-01-27 16:36:29 -04:00
Pairing more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Threads OSX build fixes 2025-02-17 14:04:08 -04:00
Types more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
WebApp Added remote.name.annex-web-options config 2025-04-01 10:17:38 -04:00
Alert.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
BranchChange.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Changes.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Commits.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Common.hs use fastDebug everywhere it can be used 2021-04-06 15:41:24 -04:00
CredPairCache.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
DaemonStatus.hs parsePOSIXTime ByteString conversion 2025-01-22 16:42:09 -04:00
DeleteRemote.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Drop.hs add SeekInput (not yet used) 2020-09-15 15:41:13 -04:00
Fsck.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Gpg.hs use NonEmpty for dirHashes 2024-09-26 18:15:00 -04:00
Install.hs OSX build fixes 2025-02-17 14:04:08 -04:00
MakeRemote.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
MakeRepo.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Monad.hs turn of PackageImports in cabal file 2022-02-25 13:16:36 -04:00
NamedThread.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pairing.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Pushes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
RemoteControl.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Repair.hs assistant: Avoid startup hang on active *.lock file 2025-05-22 12:56:58 -04:00
RepoProblem.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Restart.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
ScanRemotes.hs update licenses from GPL to AGPL 2019-03-13 15:48:14 -04:00
Ssh.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Sync.hs convert checkAvailable to use availability rather than localpath 2023-08-16 15:57:30 -04:00
TransferQueue.hs plumb in LiveUpdate (WIP) 2024-08-23 16:35:12 -04:00
TransferSlots.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Unused.hs more OsPath conversion (749/749) 2025-02-10 14:59:20 -04:00
Upgrade.hs Added remote.name.annex-web-options config 2025-04-01 10:17:38 -04:00
WebApp.hs unified AuthToken type between webapp and tor 2016-11-22 14:18:34 -04:00