projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62b27fd
)
[project @ 2005-05-27 19:26:34 by simonmar]
author
simonmar
<unknown>
Fri, 27 May 2005 19:26:34 +0000
(19:26 +0000)
committer
simonmar
<unknown>
Fri, 27 May 2005 19:26:34 +0000
(19:26 +0000)
hLookAhead: don't wait for a completely full buffer
GHC/Handle.hs
patch
|
blob
|
history
diff --git
a/GHC/Handle.hs
b/GHC/Handle.hs
index
49ab6dc
..
a3cf25b
100644
(file)
--- a/
GHC/Handle.hs
+++ b/
GHC/Handle.hs
@@
-1146,7
+1146,7
@@
hLookAhead handle = do
-- fill up the read buffer if necessary
new_buf <- if bufferEmpty buf
- then fillReadBuffer fd is_line (haIsStream handle_) buf
+ then fillReadBuffer fd True (haIsStream handle_) buf
else return buf
writeIORef ref new_buf