#2699: broken pipe errors are too noisy
---------------------------------+------------------------------------------
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal | Component: Runtime System
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown/Multiple | Os: Unknown/Multiple
---------------------------------+------------------------------------------
The following program
{{{
main = mapM_ print fibs where fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
}}}
produces this output when piped through {{{head}}} on a shell:
{{{
# ./a.out | head -n 1
0
a.out: <stdout>: commitAndReleaseBuffer: resource vanished (Broken pipe)
#
}}}
The final error message is annoying. It would be nice if the RTS
suppressed it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2699>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs