Project

General

Profile

Actions

Feature #4512

closed

[PATCH] ext/fcntl/fcntl.c: add F_DUPFD_CLOEXEC constant

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

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

Description

=begin
It's in POSIX.1-2008 and will be useful when Ruby becomes more
multi-threaded.

related: http://redmine.ruby-lang.org/issues/1291

If/when 1291 goes through I'd also like IO#dup to work with the dup3()
system call, but this patch is much less intrusive.
=end


Files

0001-ext-fcntl-fcntl.c-add-F_DUPFD_CLOEXEC-constant.patch (1.08 KB) 0001-ext-fcntl-fcntl.c-add-F_DUPFD_CLOEXEC-constant.patch patch to add constant normalperson (Eric Wong), 03/20/2011 01:00 PM
0001-ext-fcntl-fcntl.c-add-F_DUPFD_CLOEXEC-constant.patch (2.04 KB) 0001-ext-fcntl-fcntl.c-add-F_DUPFD_CLOEXEC-constant.patch updated patch with test case normalperson (Eric Wong), 07/01/2011 04:33 PM

Related issues 2 (0 open2 closed)

Related to Ruby master - Feature #5041: Set FD_CLOEXEC for all fds (except 0, 1, 2)Closedakr (Akira Tanaka)10/24/2011Actions
Related to Ruby master - Feature #1291: O_CLOEXEC flag missing for Kernel::openClosedkosaki (Motohiro KOSAKI)03/15/2009Actions

Updated by nahi (Hiroshi Nakamura) almost 13 years ago

  • Target version changed from 1.9.3 to 2.0.0

We're looking for a fcntl maintainer...

Updated by normalperson (Eric Wong) almost 13 years ago

Hiroshi Nakamura wrote:

We're looking for a fcntl maintainer...

Since fcntl is related to I/O and files (and IO#fcntl is implemented in
io.c), why not just give this to io.c/file.c maintainers?

--
Eric Wong

Updated by kosaki (Motohiro KOSAKI) almost 13 years ago

  • Status changed from Open to Assigned
  • Assignee set to kosaki (Motohiro KOSAKI)

why not just give this to io.c/file.c maintainers?

We don't have io.c/file.c maintainers too. Anyway I assigned it to me. Please stop annoying ping pong.

Updated by kosaki (Motohiro KOSAKI) almost 13 years ago

  • Status changed from Assigned to Feedback

I've reviewed linux kernel source code and concluded this patch doesn't have the same issue with O_CLOEXEC when run on older kernels. So, I'll commit the patch if you make test case.

Thanks.

Updated by kosaki (Motohiro KOSAKI) almost 13 years ago

  • Status changed from Feedback to Assigned

Updated by kosaki (Motohiro KOSAKI) over 12 years ago

I'm waiting the discussion of #5041.

Updated by kosaki (Motohiro KOSAKI) over 12 years ago

  • Status changed from Assigned to Closed

Akr committed #5041. so we can close this ticket too.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0