#4889: Ignore broken pipe error when writing to a died process
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: new
Priority: normal | Component: libraries/process
Version: | Keywords:
Testcase: | Blockedby:
Os: Linux | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
In readProcessWithExitCode, when child dies without reading whole input we
get a pipe error. This happens when child program is not satisfied with
input or does not need whole input. In such a case error code from the
child program is more expected.
The solution is to ignore write error (broken pipe).
For a (short) discussion of issue see thread:
http://www.haskell.org/pipermail/libraries/2010-December/015366.html
Attached patch ignores output exceptions.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4889>
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