Project

General

Profile

ActionsLike0

Feature #11536

closed

File.mkfifo

Added by akr (Akira Tanaka) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:<unknown>]

Description

I'd like to add File.mkfifo.

It is useful for tests.
FIFO is tricky: open() can block.
So it is troublesome and tests can prevent problems.

mkfifo() is defined POSIX.
Non-POSIX platform may not have it.
If we provide File.mkfifo, we can check the availability as File.respond_to? :mkfifo.
Current way, mkfifo command invocation, is difficult to determine the availability.
This availability checking eases test condition.
So this (non-implemented) method can be useful for non-POSIX platforms.

Several people requested File.mkfifo.
ruby-talk:92371, ruby-core:15675, ruby-list:49868

nobu and Hongli Lai implemented it: ruby-talk:91735 and ruby-core:15822

#1

Updated by matz (Yukihiro Matsumoto) over 9 years ago

  • Assignee set to akr (Akira Tanaka)
#2

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Assignee deleted (akr (Akira Tanaka))
#3

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Open to Closed
ActionsLike0

Also available in: Atom PDF