From: akr@... Date: 2014-01-18T13:28:43+00:00 Subject: [ruby-core:59845] [ruby-trunk - Feature #9328] [Closed] [PATCH] avoid redundant F_GETFD when O_CLOEXEC works Issue #9328 has been updated by Akira Tanaka. Status changed from Open to Closed % Done changed from 0 to 100 Applied in changeset r44640. ---------- * io.c: Test O_CLOEXEC only once. Patch by Eric Wong. [ruby-core:59419] [Feature #9328] ---------------------------------------- Feature #9328: [PATCH] avoid redundant F_GETFD when O_CLOEXEC works https://bugs.ruby-lang.org/issues/9328#change-44413 * Author: Eric Wong * Status: Closed * Priority: Low * Assignee: * Category: * Target version: ---------------------------------------- It is pointless to check if O_CLOEXEC works after every single open() call. If the kernel supports O_CLOEXEC for one open(), it is supported for every open() syscall. I mainly made this to make my strace less noisy. Also similar changes to socket/socketpair/fstat planned. Pull request: The following changes since commit d6c7ab9ffeff31fb5a49776ab74a61b478344107: * 2013-12-31 (2013-12-30 19:48:05 +0000) are available in the git repository at: git://bogomips.org/ruby.git check_cloexec_once for you to fetch changes up to 699cafe0aea5a92c82e9f8ded0d7213666ffb1d3: avoid redundant F_GETFD when O_CLOEXEC works (2013-12-30 22:02:14 +0000) ---------------------------------------------------------------- Eric Wong (1): avoid redundant F_GETFD when O_CLOEXEC works io.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) ---Files-------------------------------- 0001-avoid-redundant-F_GETFD-when-O_CLOEXEC-works.patch (1.74 KB) -- http://bugs.ruby-lang.org/