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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0