1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): servers

is nil if an error occurs before setting it.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-07-16 10:04:17 +00:00
parent 3622071601
commit 1c75d58165
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Jul 16 19:02:28 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): servers
is nil if an error occurs before setting it.
Thu Jul 16 18:42:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* random.c (fill_random_seed): suppress a warning.

View file

@ -312,7 +312,7 @@ class Socket
}
sockets
ensure
sockets.each {|s| s.close if !s.closed? } if $!
sockets.each {|s| s.close if !s.closed? } if $! && sockets
end
class << self
private :tcp_server_sockets_port0