From 0d2a92e0b327bd69781dd51f34278e843d5f0b74 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 30 Oct 2011 12:13:05 +0000 Subject: * include/ruby/intern.h (rb_cloexec_pipe): declared. * io.c (rb_cloexec_pipe): new function. (rb_pipe): use rb_cloexec_pipe. * thread_pthread.c (rb_thread_create_timer_thread): use rb_cloexec_pipe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33572 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 626bcf193f..de2fdbd57b 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -505,6 +505,7 @@ 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); int rb_cloexec_dup2(int oldfd, int newfd); +int rb_cloexec_pipe(int fildes[2]); #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