⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (431 Bytes)
Bug #11600
» testcase.rb
tarmo_t (Tarmo Tänav)
, 10/18/2015 12:35 PM
require
'socket'
require
'tempfile'
temp
=
[]
while
true
begin
temp
<<
Tempfile
.
new
(
"x"
)
rescue
Errno
::
EMFILE
temp
.
pop
.
close
break
end
end
loop
do
puts
"loop"
threads
=
[]
2
.
times
do
|
i
|
threads
<<
Thread
.
new
do
2
.
times
do
begin
Socket
.
getaddrinfo
(
"localhost"
,
nil
)
rescue
SocketError
,
Errno
::
EMFILE
end
end
end
end
threads
.
each
{
|
t
|
t
.
join
}
end
« Previous
1
2
Next »
(2-2/2)
Loading...