git-annex/doc
Joey Hess 635c9a1549 assistant: Detect stale git lock files at startup time, and remove them.
Extends the index.lock handling to other git lock files. I surveyed
all lock files used by git, and found more than I expected. All are
handled the same in git; it leaves them open while doing the operation,
possibly writing the new file content to the lock file, and then closes
them when done.

The gc.pid file is excluded because it won't affect the normal operation
of the assistant, and waiting for a gc to finish on startup wouldn't be
good.

All threads except the webapp thread wait on the new startup sanity checker
thread to complete, so they won't try to do things with git that fail
due to stale lock files. The webapp thread mostly avoids doing that kind of
thing itself. A few configurators might fail on lock files, but only if the
user is explicitly trying to run them. The webapp needs to start
immediately when the user has opened it, even if there are stale lock
files.

Arranging for the threads to wait on the startup sanity checker was a bit
of a bear. Have to get all the NotificationHandles set up before the
startup sanity checker runs, or they won't see its signal. Perhaps
the NotificationBroadcaster is not the best interface to have used for
this. Oh well, it works.

This commit was sponsored by Michael Jakl
2013-10-05 17:04:21 -04:00
..
Android clean up Android comment-as-bug-report mess 2013-07-30 13:54:03 -04:00
android
assistant prep release 2013-10-02 16:01:07 -04:00
backends Added a comment: Please be more specific about what information goes into the key 2013-07-31 11:55:09 +00:00
bare_repositories removed 2013-08-23 17:45:09 +00:00
bugs assistant: Detect stale git lock files at startup time, and remove them. 2013-10-05 17:04:21 -04:00
contact Added a comment 2013-10-03 00:06:11 +00:00
copies Added a comment: See also section on backups in walthroug 2013-08-25 05:37:04 +00:00
design another lock file 2013-10-03 17:05:53 -04:00
devblog Added a comment 2013-10-04 20:13:37 +00:00
direct_mode Added a comment 2013-08-24 15:56:47 +00:00
download
encryption
footer new devblog for new year of crowdfunded development 2013-08-28 17:40:09 -04:00
forum 2013-10-05 15:29:20 +00:00
how_it_works Added a comment: minor suggestion 2013-08-10 14:31:32 +00:00
install allow building w/o cryptohash 2013-10-03 12:33:38 -04:00
internals
license
links
news add news item for git-annex 4.20131002 2013-10-04 13:09:23 -04:00
not
preferred_content
special_remotes Added a comment 2013-09-26 03:46:18 +00:00
sync
templates
tips git-annex-shell: Added support for operating inside gcrypt repositories. 2013-09-24 17:25:47 -04:00
todo Added a comment 2013-10-05 10:45:16 +00:00
upgrades fix example 2013-09-25 12:47:55 -04:00
use_case tip about offline archive drives 2013-09-22 16:31:21 -04:00
users what i use git-annex for 2013-09-21 15:21:58 +00:00
videos
walkthrough adjust for earlier change that made sync be introduced earlier 2013-09-07 19:18:16 -04:00
Android.mdwn clean up Android comment-as-bug-report mess 2013-07-30 13:54:03 -04:00
assistant.mdwn mention the new crowdfunding 2013-07-16 00:41:51 +00:00
automatic_conflict_resolution.mdwn break out a page 2013-07-09 15:08:59 -04:00
backends.mdwn Added SKEIN256 and SKEIN512 backends 2013-10-01 20:34:36 -04:00
bare_repositories.mdwn Fix example command. 2013-09-26 00:24:04 +00:00
bugs.mdwn
builds.mdwn tweak 2013-09-13 23:25:33 -04:00
coding_style.mdwn
comments.mdwn
contact.mdwn
copies.mdwn
design.mdwn link 2013-09-06 14:06:55 -04:00
devblog.mdwn new devblog for new year of crowdfunded development 2013-08-28 17:40:09 -04:00
direct_mode.mdwn mention git annex sync since people seem to be confused about how to sync direct mode repositories 2013-08-23 13:55:18 -04:00
distributed_version_control.mdwn
download.mdwn
encryption.mdwn reword docs 2013-09-04 20:11:25 -04:00
favicon.ico
favicon.png Install XDG desktop icon files. 2013-07-09 19:56:30 -04:00
feeds.mdwn brought back the twitter feed in the sidebar 2013-07-23 16:45:53 -04:00
forum.mdwn
future_proofing.mdwn
git-annex-shell.mdwn git-annex-shell gcryptsetup command 2013-10-01 17:20:51 -04:00
git-annex.mdwn Send a git-annex user-agent when downloading urls. 2013-09-28 14:35:21 -04:00
git-union-merge.mdwn
how_it_works.mdwn
index.mdwn brought back the twitter feed in the sidebar 2013-07-23 16:45:53 -04:00
install.mdwn add build page 2013-09-13 23:12:44 -04:00
internals.mdwn 2013-07-15 09:44:10 +00:00
license.mdwn
location_tracking.mdwn
logo-old-bw.svg fix filename 2013-07-20 14:46:26 -04:00
logo-old.png New improved version of the git-annex logo, contributed by John Lawrence. 2013-07-20 13:16:47 -04:00
logo-old.svg New improved version of the git-annex logo, contributed by John Lawrence. 2013-07-20 13:16:47 -04:00
logo-old_small.png New improved version of the git-annex logo, contributed by John Lawrence. 2013-07-20 13:16:47 -04:00
logo.mdwn New improved version of the git-annex logo, contributed by John Lawrence. 2013-07-20 13:16:47 -04:00
logo.svg New improved version of the git-annex logo, contributed by John Lawrence. 2013-07-20 13:16:47 -04:00
logo_small.png New improved version of the git-annex logo, contributed by John Lawrence. 2013-07-20 13:16:47 -04:00
meta.mdwn
news.mdwn
not.mdwn
preferred_content.mdwn update to use enableremote for changing preferreddir settings 2013-07-16 13:54:00 -04:00
privacy.mdwn
related_software.mdwn merged 2013-09-12 13:03:17 -04:00
repomap.png
scalability.mdwn
sidebar.mdwn remove twitter and identica feeds; both no longer offer rss; add campaign link temporarily 2013-07-14 19:04:06 -04:00
sitemap.mdwn
special_remotes.mdwn add link to knife-annex 2013-09-28 16:19:57 -04:00
summary.mdwn
sync.mdwn break out a page 2013-07-09 15:08:59 -04:00
testimonials.mdwn
tips.mdwn
todo.mdwn
transferring_data.mdwn
trust.mdwn
upgrades.mdwn
users.mdwn
videos.mdwn
walkthrough.mdwn