From: redmine@... Date: 2011-04-17T00:53:31+09:00 Subject: [ruby-core:35786] [Ruby 1.9 - Feature #4528][Closed] [PATCH] ext/io/nonblock: avoid unnecessary fcntl F_SETFL calls Issue #4528 has been updated by Motohiro KOSAKI. Status changed from Assigned to Closed Target version changed from 1.9.x to 1.9.3 r31238. ---------------------------------------- Feature #4528: [PATCH] ext/io/nonblock: avoid unnecessary fcntl F_SETFL calls http://redmine.ruby-lang.org/issues/4528 Author: Eric Wong Status: Closed Priority: Low Assignee: Motohiro KOSAKI Category: ext Target version: 1.9.3 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