[GHC] #4248: Poor error message when openFile fails to open named pipe
GHC
cvs-ghc at haskell.org
Tue Mar 29 17:32:50 CEST 2011
#4248: Poor error message when openFile fails to open named pipe
-----------------------------+----------------------------------------------
Reporter: Khudyakov | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.2.1
Component: libraries/base | Version: 6.12.3
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
-----------------------------+----------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => fixed
Comment:
I added an API that you can use to open a file in blocking mode if you
want:
{{{
Tue Mar 29 14:09:28 BST 2011 Simon Marlow <marlowsd at gmail.com>
* Add GHC.IO.Handle.FD.openFileBlocking (#4248)
like openFile, but opens the file without O_NONBLOCK
}}}
It's in a GHC-specific module, because this is a GHC-specific issue. You
could also use `System.Posix.openFD` and then `System.Posix.fdToHandle`,
which is more portable.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4248#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list