summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-13 19:32:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-13 19:32:09 -0400
commit89dad12b3510f2540c6678e68145d922c7db5a7b (patch)
tree14f34eebbcb997c6a09bf78dc10ae8753dd7f4ef
parentb1a4d558360cfa9b650363f897f86dcf162c42ee (diff)
update
-rw-r--r--Assistant.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/Assistant.hs b/Assistant.hs
index 3a3bcf7e0..b72f9a7e7 100644
--- a/Assistant.hs
+++ b/Assistant.hs
@@ -10,12 +10,13 @@
- The initial thread run, double forks to background, starts other
- threads, and then stops, waiting for them to terminate,
- or for a ctrl-c.
- - Thread 2: inotify
+ - Thread 2: watcher
- Notices new files, and calls handlers for events, queuing changes.
- Thread 3: inotify internal
- Used by haskell inotify library to ensure inotify event buffer is
- kept drained.
- - Thread 4: inotify initial scan
+ - Thread 4: inotify startup scanner
+ - Scans the tree and registers inotify watches for each directory.
- A MVar lock is used to prevent other inotify handlers from running
- until this is complete.
- Thread 5: committer
@@ -23,6 +24,8 @@
- index, then commits.
- Thread 6: status logger
- Wakes up periodically and records the daemon's status to disk.
+ - Thread 7: sanity checker
+ - Wakes up periodically (rarely) and does sanity checks.
-
- ThreadState: (MVar)
- The Annex state is stored here, which allows resuscitating the