Feature #9328
closed[PATCH] avoid redundant F_GETFD when O_CLOEXEC works
Description
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
Updated by akr (Akira Tanaka) over 10 years ago
- 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]