Commit 4ba3fa31 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

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:
parent 011e39d7
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment