зеркало из https://github.com/github/ruby.git
* ext/socket/socket.c (tcp_accept_nonblock): forgot to remove
abandoned hacks. [ruby-dev:28740] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3cbe446867
Коммит
4ee699999d
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,8 @@
|
|||
Mon Jun 19 02:10:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (tcp_accept_nonblock): forgot to remove
|
||||
abandoned hacks. [ruby-dev:28740]
|
||||
|
||||
Mon Jun 19 00:00:17 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/multi-tk.rb: fix bug: initialize improper tables.
|
||||
|
@ -28,6 +33,11 @@ Sat Jun 17 23:42:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
|
||||
* ext/socket/socket.c: protoize.
|
||||
|
||||
Sat Jun 17 22:17:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/mathn.rb (Integer::prime_division): raise ZeroDivisionError
|
||||
on zeros. [ruby-dev:28739]
|
||||
|
||||
Sat Jun 17 14:53:32 2006 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* lib/pathname.rb (Kernel#Pathname): new method.
|
||||
|
|
|
@ -1467,16 +1467,11 @@ tcp_accept_nonblock(VALUE sock)
|
|||
OpenFile *fptr;
|
||||
struct sockaddr_storage from;
|
||||
socklen_t fromlen;
|
||||
VALUE client;
|
||||
|
||||
GetOpenFile(sock, fptr);
|
||||
fromlen = sizeof(from);
|
||||
client = s_accept_nonblock(rb_cTCPSocket, fptr,
|
||||
return s_accept_nonblock(rb_cTCPSocket, fptr,
|
||||
(struct sockaddr *)&from, &fromlen);
|
||||
if (rb_block_given_p()) {
|
||||
return sock_yield(client);
|
||||
}
|
||||
return client;
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
@ -1485,15 +1480,10 @@ tcp_sysaccept(VALUE sock)
|
|||
OpenFile *fptr;
|
||||
struct sockaddr_storage from;
|
||||
socklen_t fromlen;
|
||||
VALUE client;
|
||||
|
||||
GetOpenFile(sock, fptr);
|
||||
fromlen = sizeof(from);
|
||||
client = s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
|
||||
if (rb_block_given_p()) {
|
||||
return sock_yield(client);
|
||||
}
|
||||
return client;
|
||||
return s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYS_UN_H
|
||||
|
|
Загрузка…
Ссылка в новой задаче