mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
* ext/socket/unixsocket.c (unix_recv_io): prevent FD leak when 2 fd is
sent on LP64 platform. * ext/socket/rubysocket.h (rsock_discard_cmsg_resource): declared. * ext/socket/ancdata.c (rsock_discard_cmsg_resource): renamed from discard_cmsg_resource. export it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a898f0fb4b
commit
c17b915eb8
4 changed files with 37 additions and 17 deletions
|
@ -259,6 +259,10 @@ VALUE s_accept_nonblock(VALUE klass, rb_io_t *fptr, struct sockaddr *sockaddr, s
|
|||
|
||||
VALUE sockopt_new(int family, int level, int optname, VALUE data);
|
||||
|
||||
#ifdef HAVE_ST_MSG_CONTROL
|
||||
void rsock_discard_cmsg_resource(struct msghdr *mh);
|
||||
#endif
|
||||
|
||||
void Init_basicsocket(void);
|
||||
void Init_ipsocket(void);
|
||||
void Init_tcpsocket(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue