From 4ae2b92576e8e9fc43906e9483c79eff9d0522f7 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 29 Oct 2011 11:02:32 +0000 Subject: * include/ruby/intern.h (rb_cloexec_dup): declared. * io.c (rb_cloexec_dup): new function. (ruby_dup): use rb_cloexec_dup. * ext/pty/pty.c (pty_getpty): use rb_cloexec_dup. * ext/openssl/ossl_bio.c (ossl_obj2bio): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 5f8d1ae929..b1a86586a5 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -503,6 +503,7 @@ void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds); int rb_pipe(int *pipes); int rb_reserved_fd_p(int fd); int rb_cloexec_open(const char *pathname, int flags, mode_t mode); +int rb_cloexec_dup(int oldfd); #define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd) void rb_update_max_fd(int fd); void rb_fd_set_cloexec(int fd); -- cgit v1.2.3