transplant-output-port needs to return #f instead of 0 when failing to write bytes

svn: r1593
This commit is contained in:
Matthew Flatt 2005-12-12 16:55:36 +00:00
parent f080b36c9a
commit 196a6fdff3

View File

@ -60,7 +60,7 @@
write-bytes-avail))
s p start end)])
(if (and (zero? v) (not (= start end)))
(wrap-evt p (lambda (x) 0))
(wrap-evt p (lambda (x) #f))
v)))
(lambda ()
(when close?