logo       

Re: [GHC] #724: tee complains if used in a process started by ghc: msg#00092

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #724: tee complains if used in a process started by ghc

#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_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise