projects
/
cl-inotify.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fadc66
)
Use better type test.
author
Olof-Joachim Frahm
<olof@macrolet.net>
Thu, 15 Jan 2015 23:35:49 +0000
(23:35 +0000)
committer
Olof-Joachim Frahm
<olof@macrolet.net>
Thu, 15 Jan 2015 23:42:23 +0000
(23:42 +0000)
src/inotify.lisp
patch
|
blob
|
history
diff --git
a/src/inotify.lisp
b/src/inotify.lisp
index
87931fc
..
fe404a3
100644
(file)
--- a/
src/inotify.lisp
+++ b/
src/inotify.lisp
@@
-83,9
+83,9
@@
(member :dont-follow :mask-add :oneshot :onlydir)))
(defun valid-watch-flag-p (x)
- (and (typep x 'inotify-add-flag)
- (not (eq :mask-add x))
- (not (eq :oneshot x))))
+ (or (typep x 'inotify-read-flag)
+ (eq :dont-follow x)
+ (eq :onlydir x)))
(defun valid-watch-flag-list-p (list)
(every #'valid-watch-flag-p list))