diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2012-05-02 23:28:12 -0500 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2012-05-02 23:28:12 -0500 |
commit | 95e035ab3d3ee79965b846ff64970cdba4436f95 (patch) | |
tree | d17c90a1baec3b43a10b98592f0436cf3835a78d /src | |
parent | bb1b22ed10f126846b8eb273e19ea2f8a5bb5aa2 (diff) |
Ignore return value of recvmsg, wtf?
Diffstat (limited to 'src')
-rw-r--r-- | src/clojure/foofs/fuse/jna.clj | 6 |
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)))) |