Issue #4528 has been updated by Motohiro KOSAKI.

Status changed from Open to Assigned
Assignee set to Motohiro KOSAKI

Looks good to me. I'll commit this if nobody put objections.

----------------------------------------
Feature #4528: [PATCH] ext/io/nonblock: avoid unnecessary fcntl F_SETFL calls
http://redmine.ruby-lang.org/issues/4528

Author: Eric Wong
Status: Assigned
Priority: Low
Assignee: Motohiro KOSAKI
Category: ext
Target version: 1.9.x


Avoid F_SETFL if we're not changing the O_NONBLOCK bit.  F_SETFL
is an expensive operation since it needs to affect all processes
with the same file object.

rb_io_set_nonblock() implements similar logic to avoid F_SETFL
in io.c


-- 
http://redmine.ruby-lang.org