summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-11-22 11:33:39 -0500
committerBen Gamari <ben@smart-cactus.org>2018-11-22 12:11:16 -0500
commit4ba3fa31ddfa12b428bd67216a2d4118dc9e8311 (patch)
tree4eecbd69f4d6733cfc608cd1e9d4a82052f38493 /libraries
parent011e39d7fe533ca772beeed8529749c4750d4817 (diff)
downloadhaskell-4ba3fa31ddfa12b428bd67216a2d4118dc9e8311.tar.gz
base: Mention openFile throwing does-not-exist-errors on FIFOs
As discussed in #15715, the POSIX specification specifies that attempting to open a FIFO in write-only mode when the FIFO has no readers will fail with -ENOENT. [skip ci] Test Plan: Read it Reviewers: hvr Subscribers: rwbarton, carter GHC Trac Issues: #15715 Differential Revision: https://phabricator.haskell.org/D5295
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/GHC/IO/Handle/FD.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/base/GHC/IO/Handle/FD.hs b/libraries/base/GHC/IO/Handle/FD.hs
index 883bc5fe59..64179768c9 100644
--- a/libraries/base/GHC/IO/Handle/FD.hs
+++ b/libraries/base/GHC/IO/Handle/FD.hs
@@ -131,7 +131,9 @@ addFilePathToIOError fun fp ioe
-- * 'System.IO.Error.isAlreadyInUseError' if the file is already open and
-- cannot be reopened;
--
--- * 'System.IO.Error.isDoesNotExistError' if the file does not exist; or
+-- * 'System.IO.Error.isDoesNotExistError' if the file does not exist or
+-- (on POSIX systems) is a FIFO without a reader and 'WriteMode' was
+-- requested; or
--
-- * 'System.IO.Error.isPermissionError' if the user does not have permission
-- to open the file.