aboutsummaryrefslogtreecommitdiff
path: root/Command/Watch.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-11 15:41:26 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-11 15:41:26 -0400
commitd3a6f04abfd6cc1eb51b9311382fe143579fbed2 (patch)
tree37924fa4822ef9107f93447a05df5094b9ed3ac3 /Command/Watch.hs
parent7f3934520a8aa877be17e5d9a0d5dbc77b274c5e (diff)
update
Diffstat (limited to 'Command/Watch.hs')
-rw-r--r--Command/Watch.hs15
1 files changed, 8 insertions, 7 deletions
diff --git a/Command/Watch.hs b/Command/Watch.hs
index 5c354cace..e049591e9 100644
--- a/Command/Watch.hs
+++ b/Command/Watch.hs
@@ -3,11 +3,16 @@
{- git-annex watch daemon
-
+ - Copyright 2012 Joey Hess <joey@kitenet.net>
+ -
+ - Licensed under the GNU GPL version 3 or higher.
+ -
- Overview of threads and MVars, etc:
-
- - Thread 1: Parent
+ - Thread 1: parent
- The initial thread run, double forks to background, starts other
- - threads, and then stops, waiting for them to terminate.
+ - threads, and then stops, waiting for them to terminate,
+ - or for a ctrl-c.
- Thread 2: inotify
- Notices new files, and calls handlers for events, queuing changes.
- Thread 3: inotify internal
@@ -18,17 +23,13 @@
- index, then commits.
-
- State MVar:
- - The Annex state is stored here, which allows recuscitating the
+ - The Annex state is stored here, which allows resuscitating the
- Annex monad in IO actions run by the inotify and committer
- threads. Thus, a single state is shared amoung the threads, and
- only one at a time can access it.
- ChangeChan STM TChan:
- Changes are indicated by writing to this channel. The committer
- reads from it.
- -
- - Copyright 2012 Joey Hess <joey@kitenet.net>
- -
- - Licensed under the GNU GPL version 3 or higher.
-}
module Command.Watch where