#2699: broken pipe errors are too noisy
---------------------------------+------------------------------------------
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12 branch
Component: Runtime System | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by igloo):
Looks good, thanks! I've applied all of the bits related to adding `errno`
to the `IOError` type.
That leaves this bit:
{{{
hunk ./GHC/TopHandler.lhs 171
- _ -> do reportError se
- exit 1
+ _ -> case cast exn of
+ Just IOError{ ioe_type = ResourceVanished, ioe_errno =
Just ioe }
+ | Errno ioe == ePIPE -> exit 0
+ _ -> do reportError se
+ exit 1
}}}
Do we have consensus that silently exiting successfully is the right thing
to do if we get a SIGPIPE?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2699#comment:5>
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