Opened 2 years ago

Closed 4 months ago

#9149 closed bug (fixed)

Description of openFileBlocking is wrong

Reported by: edsko Owned by:
Priority: normal Milestone: 8.0.1
Component: Documentation Version: 7.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Documentation bug Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

The documentation states:

Like openFile, but opens the file in ordinary blocking mode. This can be useful for opening a FIFO for reading: if we open in non-blocking mode then the open will fail if there are no writers, whereas a blocking open will block until a writer appears. but I think this is the wrong way around, and should be:

Like openFile, but opens the file in ordinary blocking mode. This can be useful for opening a FIFO for writing: if we open in non-blocking mode then the open will fail if there are no readers, whereas a blocking open will block until a reader appears.

Change History (3)

comment:1 Changed 8 months ago by thomie

  • Type of failure changed from None/Unknown to Documentation bug

comment:2 Changed 4 months ago by thomie

  • Milestone set to 8.0.1
  • Status changed from new to merge

You're right, I tested it.

Fixed in commit 4c4a0a52d3ca5befd2a632544e9541703007e356

Author: Thomas Miedema <thomasmiedema@gmail.com>
Date:   Thu Jan 21 21:16:05 2016 +0100

    Fix docstring GHC.IO.Handle.FD.openFileBLocking
    
    Fixes #4248.

That ticket number should have been #9149.

comment:3 Changed 4 months ago by bgamari

  • Resolution set to fixed
  • Status changed from merge to closed
Note: See TracTickets for help on using tickets.