[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70850] [Ruby trunk - Feature #11536] File.mkfifo
From:
matz@...
Date:
2015-09-18 08:12:09 UTC
List:
ruby-core #70850
Issue #11536 has been updated by Yukihiro Matsumoto. Assignee set to Akira Tanaka Test seems reasonable use-case. Accepted. Matz. ---------------------------------------- Feature #11536: File.mkfifo https://bugs.ruby-lang.org/issues/11536#change-54223 * Author: Akira Tanaka * Status: Open * Priority: Normal * Assignee: Akira Tanaka ---------------------------------------- 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 -- https://bugs.ruby-lang.org/