aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2012-05-02 23:28:12 -0500
committerDavid Barksdale <amatus.amongus@gmail.com>2012-05-02 23:28:12 -0500
commit95e035ab3d3ee79965b846ff64970cdba4436f95 (patch)
treed17c90a1baec3b43a10b98592f0436cf3835a78d /src
parentbb1b22ed10f126846b8eb273e19ea2f8a5bb5aa2 (diff)
Ignore return value of recvmsg, wtf?
Diffstat (limited to 'src')
-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))))