[ruby-core:69142] Re: [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module

From: Nobuyoshi Nakada <nobu@...>
Date: 2015-05-12 04:58:36 UTC
List: ruby-core #69142
On 2015/05/12 12:57, Eric Wong wrote:
> nobu@ruby-lang.org wrote:
>> After requiring 'io/nonblock', no needs to see if `nonblock=` method is available.
> 
> Doesn't that raise NotImplementedError on some platforms?
> 
> I see this in ext/io/nonblock/nonblock.c:
> 
> 	#define rb_io_nonblock_set rb_f_notimplement

Indeed.  I've forgotten it, sorry.

> I'm not sure which platforms, though, maybe Windows?

Non-blocking flag works on Windows.

In This Thread

Prev Next