open-net-io should ior flags w/ non-block, not and them

This commit is contained in:
Alex Shinn 2015-08-28 23:37:37 +09:00
parent d40ae87fe9
commit da845032e5

View file

@ -48,7 +48,7 @@
(cond-expand
(threads
(if (not (and (pair? o) (car o)))
(let ((st (bitwise-and (get-file-descriptor-status sock)
(let ((st (bitwise-ior (get-file-descriptor-status sock)
open/non-block)))
(set-file-descriptor-status! sock st))))
(else #f))