mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/lib/socket.rb (Socket.unix_server_socket): close the
socket when the block exits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0a954e9117
commit
3f0d724dc3
3 changed files with 9 additions and 0 deletions
|
@ -612,6 +612,7 @@ class Socket
|
|||
begin
|
||||
yield s
|
||||
ensure
|
||||
s.close if !s.closed?
|
||||
File.unlink path
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue