summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-04 14:31:06 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-04 14:31:06 -0400
commitfa9d479fd1102efeebaafca66d7747bf07604ecb (patch)
treecc88c02cbc6817c1e0aae19291921d4208919bde /NEWS
parent59ce18d7572a088408ec3477999612d9f2b3b043 (diff)
add explict test that a closed file even is on a regular file
There are two reasons for this test. First, there could be a fifo or other non-regular file that was closed. Second, this test avoids ugliness when a subdirectory is moved out of the top of the watch directory to elsewhere, and a file added to it. Since the subdirectory has moved, the file won't be present under the old location, and nothing will be done. I cannot find a way to stop watching such directories, at least not without a lot of pain. The inotify interface in Haskell doesn't make it easy to stop watching a given subdirectory when it's moved out; it would require keeping a map of all watch handles that is shared between threads. This workaround avoids the problem in most cases; the only remaining case being deletion of a file from a moved subdirectory.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions