diff --git a/lib/chibi/net.scm b/lib/chibi/net.scm index 12bdf2b5..4399c92d 100644 --- a/lib/chibi/net.scm +++ b/lib/chibi/net.scm @@ -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))