aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/clojure/foofs/fuse/jna.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clojure/foofs/fuse/jna.clj b/src/clojure/foofs/fuse/jna.clj
index 3e699ac..dce885e 100644
--- a/src/clojure/foofs/fuse/jna.clj
+++ b/src/clojure/foofs/fuse/jna.clj
@@ -222,6 +222,6 @@
(.setInt msg offsetof-msg_iovlen (.size iov))
(.setPointer msg offsetof-msg_control ccmsg)
(.setInt msg offsetof-msg_controllen (.size ccmsg))
- (let [rv (recvmsg sockfd msg 0)]
- (when (and (< 0 rv) (== scm-rights (.getInt ccmsg 8)))
- (.getInt ccmsg 12)))))
+ (recvmsg sockfd msg 0) ;; WTF: even when this returns -1 it seems to work
+ (when (== scm-rights (.getInt ccmsg 8))
+ (.getInt ccmsg 12))))