[GHC] #724: tee complains if used in a process started by ghc
GHC
trac at galois.com
Thu Mar 16 04:50:50 EST 2006
#724: tee complains if used in a process started by ghc
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.6
Component: libraries/base | Version: 6.4.1
Severity: normal | Resolution:
Keywords: | Os: Unknown
Difficulty: Moderate (1 day) | Architecture: Unknown
-------------------------------+--------------------------------------------
Changes (by simonmar):
* difficulty: Unknown => Moderate (1 day)
* component: Compiler => libraries/base
* milestone: => 6.6
Comment:
We know why this is: it's because GHC puts stdin/stdout into non-blocking
mode, and tee doesn't like it.
There's a fix for the threaded RTS. We could avoid putting the standard
file descriptors into non-blocking mode, and instead make blocking FFI
calls to access them. This can't be used in the non-threaded RTS. (GHC
is now linked with the threaded RTS, so this would fix the case in this
bug report).
It's not a simple fix, so I'll probably punt until 6.6.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/724>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list