mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* include/ruby/intern.h (rb_fd_fix_cloexec): renamed from
rb_fd_set_cloexec. * io.c: follow the above renaming. * ext/pty/pty.c: ditto. * ext/socket/init.c: ditto. * ext/socket/socket.c: ditto. * ext/socket/ancdata.c: ditto. * ext/socket/unixsocket.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6533f070ba
commit
1a70dfe6f4
8 changed files with 35 additions and 18 deletions
|
@ -119,8 +119,8 @@ rsock_sock_s_socketpair(int argc, VALUE *argv, VALUE klass)
|
|||
if (ret < 0) {
|
||||
rb_sys_fail("socketpair(2)");
|
||||
}
|
||||
rb_fd_set_cloexec(sp[0]);
|
||||
rb_fd_set_cloexec(sp[1]);
|
||||
rb_fd_fix_cloexec(sp[0]);
|
||||
rb_fd_fix_cloexec(sp[1]);
|
||||
|
||||
s1 = rsock_init_sock(rb_obj_alloc(klass), sp[0]);
|
||||
s2 = rsock_init_sock(rb_obj_alloc(klass), sp[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue