Project

General

Profile

Actions

Feature #4528

closed

[PATCH] ext/io/nonblock: avoid unnecessary fcntl F_SETFL calls

Added by normalperson (Eric Wong) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
[ruby-core:35556]

Description

=begin
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
=end


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0