fix revents in unpack-pollfds

This commit is contained in:
Daniel Barlow 2024-04-24 18:31:26 +01:00
parent 16af3984c9
commit b4ba3eea21

View file

@ -82,7 +82,7 @@
(collect [_ v (ipairs pollfds)] (collect [_ v (ipairs pollfds)]
(let [fd (band (rshift v 32) 0xffffffff) (let [fd (band (rshift v 32) 0xffffffff)
revent (band v 0xffff)] revent (band v 0xffff)]
(values fd revent)))) (values fd (if (> revent 0) revent nil)))))
(fn parse-terms [str] (fn parse-terms [str]
(print :terms str) (print :terms str)