projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sb-bsd-sockets: Fix error code handling on Windows
[sbcl.git]
/
src
/
code
/
serve-event.lisp
diff --git
a/src/code/serve-event.lisp
b/src/code/serve-event.lisp
index
2b72d84
..
2faa401
100644
(file)
--- a/
src/code/serve-event.lisp
+++ b/
src/code/serve-event.lisp
@@
-211,7
+211,8
@@
waiting."
(loop for to-msec = (if (and to-sec to-usec)
(+ (* 1000 to-sec) (truncate to-usec 1000))
-1)
(loop for to-msec = (if (and to-sec to-usec)
(+ (* 1000 to-sec) (truncate to-usec 1000))
-1)
- when (sb!unix:unix-simple-poll fd direction to-msec)
+ when (or #!+win32 (eq direction :output)
+ (sb!unix:unix-simple-poll fd direction to-msec))
do (return-from wait-until-fd-usable t)
else
do (when to-sec (maybe-update-timeout))))))))
do (return-from wait-until-fd-usable t)
else
do (when to-sec (maybe-update-timeout))))))))